iPhone app behaves differently on every other launch

2011-08-19 Thread Rick Mann
One of my colleagues at work wrote a small test app to work on a bit of custom UI. It's a simple app based on the View-based app stationery. She has run into a vexing problem: on one run of the app, it works fine. On the second, her view controller's view does not appear. The next run, all is

[SOLVED] iPhone app behaves differently on every other launch

2011-08-19 Thread Rick Mann
Here's an interesting one for ya... My colleague had two NIB files with the same name, but one lacked all the content of the other. Xcode 3.2.6 would alternate which was included in the bundle on each build/run (running without building resulted in consistent behavior). Hence, exactly every

Re: iPhone app behaves differently on every other launch

2011-08-19 Thread William Squires
I would check 2 things: 1) Is there anything in the view controller that's maintaining a persistent boolean state that toggles each time its awakeFromNib is called? 2) Does it do the same thing when you deploy to an actual iPad? On Aug 19, 2011, at 3:20 PM, Rick Mann wrote: One of my

Re: iPhone app behaves differently on every other launch

2011-08-19 Thread Rick Mann
Actually we found the culprit. I posted the solution to the list. On Aug 19, 2011, at 16:14 , William Squires wrote: I would check 2 things: 1) Is there anything in the view controller that's maintaining a persistent boolean state that toggles each time its awakeFromNib is called? 2) Does