Skip to content

Commit

Permalink
Updates readme
Browse files Browse the repository at this point in the history
  • Loading branch information
natanrolnik committed Feb 26, 2014
1 parent 22b8588 commit 981fd38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

##Basic, block based, text transitions

NRTextTransitions is a category in UIView that makes easier handling animated text transitions for UILabel, UITextView and UITextField. As the standard +[UIView animateWithDuration:animations:] is not able to animate non-animatable properties, and text, font and textColor properties of UILabel, UITextView and UITextField, are non-animatable, you need to use CATransition to do so with animation.
NRTextTransitions is a category in UIView that makes easier handling animated text transitions for UILabel, UITextView and UITextField. As the standard `+[UIView animateWithDuration:animations:]` is not able to animate non-animatable properties, and text, font and textColor properties of UILabel, UITextView and UITextField, are non-animatable, you need to use CATransition to do so with animation.

NRTextTransitions uses a similar API to the standard UIView class methods, encapsulating the changes passed in the `animations` parameter block. In order to apply the transitions to the objects mentioned in this block, you **MUST** create an array, add the objects to this array, and pass it in the 'textObjects' parameter.
NRTextTransitions uses a similar API to the standard UIView class methods, encapsulating the changes passed in the animations parameter block. In order to apply the transitions to the objects mentioned in this block, you **must** create an array, add the objects to this array, and pass it in the 'textObjects' parameter.

##Example

Expand All @@ -23,5 +23,5 @@ NRTextTransitions uses a similar API to the standard UIView class methods, encap

You have two options:

* Use CocoaPods - Search for NRTextInstallation in CocoaPods
* Copy the files "UIView+NRTextTransitions.h/m" and "NRTextTransitionCompletionManager.h/m"
* Use CocoaPods - Search for `NRTextInstallation` in CocoaPods
* Copy the files `UIView+NRTextTransitions.h/m` and `NRTextTransitionCompletionManager.h/m`

0 comments on commit 981fd38

Please sign in to comment.