Currently I have a UIView, with 2x UITextViews among a few other things. I've added swipe functionality so that when the user swipes, I reload the data in the 2x UITextViews, making it look like their swiping forward or backward, respectivlye.
Now it just reassigns the values's in the .text field - No animation, so it looks rather bland, and happens really quick.
I want to add in some animation for these items, and my question is where do I start? Do I have to animate the entire UIView (its got a toolbar on the top that I really don't want animated). Can I just annimate the two UITextViews?
Where does this code go? Right now, when they swipe, I have a DB function that just retrieves the next (or previous) data, depending on the direction of the swipe.
So, do I have to create the view's programmatically? Also, do I need two views in order to do the transitioning?
I included an image link above to the current layout of my IB file. I'd prefer to get it working within the confines of my existing layout, if possible.
So, do I have to create the view's programmatically?
you don't have to. if you create them in IB you just need to make sure you have outlets for both of them.
Quote:
Also, do I need two views in order to do the transitioning?
You could probably fake it with one view, if you did something like:
animate frame change to make the view "disappear"
then set the new content in the existing view (which is hidden)
animate another frame change to make the view "appear"
you wouldn't ever be able to see both at the same time, and you would have to do some funky synchronization tricks to make sure that the first animation finished before kicking off the second one.
you don't have to. if you create them in IB you just need to make sure you have outlets for both of them.
I do.
Quote:
animate frame change to make the view "disappear"
then set the new content in the existing view (which is hidden)
animate another frame change to make the view "appear"