Quote:
Originally Posted by red
The file owner connects the IBActions to the buttons.
All view controllers are still being referenced correctly.
|
nobre84 is probably on the right track.
By having your view controller's view inserted in another view, you are fighting against the way the UI kit is designed. It is intended to have view controllers manage a view that covers the entire screen, and have those view controllers pushed onto a navigation controller or managed by a tab view.
Your view controller is probably not being retained, and is being deallocated, or at least it's views are being unloaded.
To test this, add a -dealloc method and a -viewDidUnload to your view controller, and have both those methods write a message to the console using NSLog(). Also set breakpoints on those methods. I bet you will find that your view controller is being deallocated before you click the button.
Regards,
Duncan C