开发者

What are some reasons that application:didFinishLaunchingWithOptions method could get skipped?

My iPad app was working fine until I opened up IB and started editing the interface. Now, my application:didFinishLaunchingWithOptions isn't getting called. I understand it's an optional function and it gets skipped if it doesn't exist, but in my case it does. What are some reasons that application:didFinishLaunchingWithOptions method could get skipped?

I should note that I'm building with the iPhone OS 3.2 SDK.

Thanks in advance for your help!

UPDATE: I f开发者_如何学Cixed it, please see my answer below


Are you sure that class has been set as the application delegate of the app?

What are some reasons that application:didFinishLaunchingWithOptions method could get skipped?


(source: xanga.com)

And also make sure the "File's Owner"'s delegate has been linked to "App Delegate".

What are some reasons that application:didFinishLaunchingWithOptions method could get skipped?


(source: xanga.com)


Well it turns out, for an unknown reason, I had a "view" view object as a child of my RootViewController in IB that didn't serve any purpose except to hold my a TableView view object and a DatePicker view object. I thought it was harmless, but when I removed it in IB and programmatically added the TableView object and and DatePicker object, suddenly this problem went away. If anyone has any ideas why this is, I'd would love to understand it.

Thanks, everyone!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜