Class: UIImageView
Instance Method Summary collapse
Instance Method Details
#remote_image=(value) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/project/ext/ui_image_view.rb', line 3 def remote_image=(value) if self.respond_to?("setImageWithURL:placeholder:") value = NSURL.URLWithString(value) unless value.is_a?(NSURL) self.setImageWithURL(value, placeholder:self.image) else puts "\n[RedPotion ERROR] tried to set remote_image without JMImageCache cocoapod. Please add this to your Rakefile: \n\napp.pods do\n pod \"JMImageCache\"\nend\n" end end |