Up vote 0 down vote favorite share g+ share fb share tw.
In my storyboard, I have a view as a splash screen. In this view, I already have a button like "Open Application" that is opening the menu view with a modal segue. But I also want screen to perform segue automatically, like after 2 seconds view appears.
Some code here: - (void)viewDidAppear:(BOOL)animated { self performSegueWithIdentifier:@"splashScreenSegue" sender:self; } As you can see, I already use performSegueWithIdentifier but it performs immediately. Is there a method to make it delay? Thanks in advance.
Iphone objective-c ios5 storyboard segue link|improve this question asked Apr 5 at 8:47confeng16512 85% accept rate.
Try adding sleep to your viewWillAppear - (void)viewDidAppear:(BOOL)animated { sleep(2.0); self performSegueWithIdentifier:@"splashScreenSegue" sender:self; }.
No surprise ^^ this code was confusing me: self performSelector:@selector(showSplash) withObject:nil afterDelay: SPLASH_HIDE_DELAY; I wondered that if there a way alike for segues. Thanks. – confeng Apr 5 at 9:00 Yeah I see where your coming from, and no problem!
– MDT Apr 5 at 9:06.
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.