21 22 23 24 25 26
# File 'lib/ios/sugarcube-factories/uibutton.rb', line 21 def detail if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeDetailDisclosure) end