开发者

iPhone Application Themes

开发者 https://www.devze.com 2023-02-24 12:15 出处:网络
I tried using a multi-value settings bundle to change the view.I would do the if statements in the applicationdidfinishloading in the application delegate.Apparently the me开发者_JAVA百科thod isn\'t c

I tried using a multi-value settings bundle to change the view. I would do the if statements in the applicationdidfinishloading in the application delegate. Apparently the me开发者_JAVA百科thod isn't called every time the app is loaded, and it would not work correctly.

If anyone has done this, or has any suggestions, links to tutorials. I would really appreciate it. I'm just trying to load views (nibs) based on user preference.


I think you can put your code in

- (void)applicationDidBecomeActive:(UIApplication *)application

or

- (void)applicationWillEnterForeground:(UIApplication *)application

methods also because from iOS 4.0 due to multitasking your app is just in the background state so it wont call applicationdidfinishloading method when the user presses the icon of your app again.

0

精彩评论

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