Class: UIImageView
- Inherits:
-
Object
- Object
- UIImageView
- Defined in:
- lib/afmotion/patch/UIImageView_url.rb
Instance Method Summary collapse
Instance Method Details
#url=(url) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/afmotion/patch/UIImageView_url.rb', line 2 def url=(url) case url when Hash self.setImageWithURL((url[:url] && url[:url].to_url), placeholderImage: url[:placeholder]) else self.setImageWithURL(url && url.to_url) end end |