|
|
|
|
|
by randomdata
5153 days ago
|
|
Isn't that really the difference between something like: def animate
UIView.begin_animation
yield
UIView.commit_animation
end
animate do
# Do something
end
and: void animate(void (^block)(void))
{
[UIView beginAnimation];
block();
[UIView commitAnimation];
}
animate(^ {
// Do something
});
Which to my eye are pretty much exactly the same. In fact, UIView already provides a similar method built into the API.Anyway, I don't want to diminish what you've accomplished. It's an awesome achievement regardless of the language you choose. |
|