Randonee / BasisApple

Native Apple application development with haxe
39 stars 4 forks source link

State if/how categories like UIViewAnimation will be handled. #1

Closed sledorze closed 11 years ago

sledorze commented 11 years ago

.and If not, what do you aim to provide for animations / transitions (?).

Randonee commented 11 years ago

Haven't gotten to UIViewAnimation yet.

You can do basic animations like this.

UIView.beginAnimations(); label.frame = [0.1, 3, 4, 5]; UIView.commitAnimations();

See the methods at the top of apple.ui.UIView

Randonee commented 11 years ago

I've added an animation to the example. https://github.com/Randonee/BasisApple/commit/529f55f24a9fb5a11e386748bec1d8f82b687011

Randonee commented 11 years ago

Animations have been updated. There are now two ways to animate. 1) As shown above 2) using UIView.animateWithDuration

The example application has been updated to use #2. The other block animation methods will be implemented in much the same way as #2. (however they are not yet implemented)

As for other categories, it really depends on the category. Implementations of delegates and datasources can be seen with apple.ui.UITableView.

apple.ui.UINavigationBar is an example of how to use non UI class items.

Randonee commented 11 years ago

All UIView block animation methods have been added. Examples of transitions have been added to the example.