Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MythicFrost

macrumors 68040
Original poster
Mar 11, 2009
3,944
40
Australia
Hey, I'm trying to do this:
Code:
- (void)viewDidAppear:(BOOL)animated {
	[super viewDidAppear:(BOOL)animated];
	[self performSelector:(dismissSplashScreen) withObject:nil afterDelay:3.0];
}
But it says dismissSplashScreen isn't declared? Where do I declare it?
The other part of the code below is right underneath (I also tried on top) of the viewDidAppear function.
Code:
- (void)dismissSplashScreen {
	self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
	[self dismissModalViewControllerAnimated:(BOOL)YES];
}

Any idea's? Thanks.
 
You're missing:
Code:
[self performSelector:[b]@selector[/b](dismissSplashScreen) ...
 
Also the (BOOL) parts here are unnecessary:

Code:
[super viewDidAppear:(BOOL)animated];

[self dismissModalViewControllerAnimated:(BOOL)YES];

animated is already a BOOL, and YES is defined as (BOOL)1, so it's just redundant.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.