infinitered / redpotion

We believe iPhone development should be clean, scalable, and fast with a language that developers not only enjoy, but actively choose. With the advent of Ruby for iPhone development the RubyMotion community has combined and tested the most active and powerful gems into a single package called RedPotion
MIT License
233 stars 40 forks source link

Add a remote_image method that can take a block #167

Closed willem-h closed 8 years ago

willem-h commented 8 years ago

Previously it was hard to tell when an image had finished loading from a URL. Having the ability to call remote_image with a block that will execute when an image finishes loading makes this super easy. Being able to do this is useful when displaying spinners as they can now be removed easily at the appropriate time.

The remote_image method is separate from the setter method remote_image= to adhere to the convention of setter methods and to provide a clear interface.