• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iPhone app behaves differently on every other launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone app behaves differently on every other launch


  • Subject: iPhone app behaves differently on every other launch
  • From: Rick Mann <email@hidden>
  • Date: Fri, 19 Aug 2011 13:20:32 -0700

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 fine. The next, broken. It is exactly every other time that it works.

This is all in the sim. I've tried quitting the sim, resetting it, etc. It always, without fail, alternates behavior every other launch, no matter what else you do.

What little debugging I've done shows that -didFinishLaunching is always called, but that the view fails to load every other time. That is, the view controller's -viewDidLoad is only called every other launch. -didFinishLaunching installed the view controller as the window's root view controller, then calls -makeKeyAndVisible. Both those outlets are never nil.

Any ideas?

Thanks,
Rick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iPhone app behaves differently on every other launch
      • From: William Squires <email@hidden>
    • [SOLVED] iPhone app behaves differently on every other launch
      • From: Rick Mann <email@hidden>
  • Prev by Date: Crash Reporter for Lion
  • Next by Date: Re: Looking for sample code to support NSRect resize in a view
  • Previous by thread: Re: Crash Reporter for Lion
  • Next by thread: [SOLVED] iPhone app behaves differently on every other launch
  • Index(es):
    • Date
    • Thread