In my app when I am switching views with an animation using UIView animations, it works fine the first time when I switch views because the view slides properly into place and everything works. But if I switch back to my original view and then go BACK to the new view, it does not show anything, the view is black but I know my method is getting called.
My code is below, but does anyone see anything that is wrong?
In my app when I am switching views with an animation using UIView animations, it works fine the first time when I switch views because the view slides properly into place and everything works. But if I switch back to my original view and then go BACK to the new view, it does not show anything, the view is black but I know my method is getting called.
My code is below, but does anyone see anything that is wrong?
Do all these views you're dealing with belong to the same view controller, or are you swapping view controllers around? If you're swapping view controllers, don't do that. It will get you in a world of trouble.
You CAN do that with the new iOS 5 child view controller support, but that's the only way you should do it.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
Do all these views you're dealing with belong to the same view controller, or are you swapping view controllers around? If you're swapping view controllers, don't do that. It will get you in a world of trouble.
You CAN do that with the new iOS 5 child view controller support, but that's the only way you should do it.
No, each view has its own view controller. Would you mind sharing a link to the new way I should do it in iOS 5 since my app will be iOS 5 only anyway?
No, each view has its own view controller. Would you mind sharing a link to the new way I should do it in iOS 5 since my app will be iOS 5 only anyway?
No, each view has its own view controller. Would you mind sharing a link to the new way I should do it in iOS 5 since my app will be iOS 5 only anyway?
It's described pretty well in the UIViewController class reference. Search on the string "Implementing a Container View Controller" to find the specific section.
Also make sure you look at the method transitionFromViewController:toViewController:dura tionptions:animations:completion.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.