Method: NSString#uiimageview

Defined in:
lib/sugarcube-uikit/nsstring.rb

#uiimageviewUIImageView

Returns:

  • (UIImageView)


30
31
32
33
34
35
36
# File 'lib/sugarcube-uikit/nsstring.rb', line 30

def uiimageview
  image = UIImage.imageNamed(self)
  unless image
    NSLog("No image named #{self}")
  end
  UIImageView.alloc.initWithImage(image)
end