IOS Root View Controller's viewDidAppear: called while splash screen (Default.png) still on screen?

In viewdidload use this self performSelector:@selector(loadData) withObject:nil afterDelay:.5; and then use your code inside loaddata method...

I just encountered a very similar problem myself, wherein I wanted to display a modal login view after my root view controller loaded. I'd previously been using viewDidAppear, but the behavior broke when I upgraded to the iOS 4.3 SDK. I fixed it by calling a selector on my root view controller from the app delegate's application:didFinishLaunchingWithOptions: selector.

Using a delay as in the other answer is a bit of a kludge, and probably not entirely reliable. In yourAppDelegate. M: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Add the view controller's view to the window and display.Self.

Window addSubview:viewController. View; self. Window makeKeyAndVisible; // Invoke operations here.

For example, show login view: viewController showModalLoginView; return YES; }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions