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
Code:
- (void)viewDidAppear:(BOOL)animated { //Line 31
	[super viewDidAppear:animated];
	[self performSelector:@selector(dismissSplashScreen) withObject:nil afterDelay:3.0];
}
That code works fine, if I remove (BOOL) on the function, it shows a warning saying:
Line 31 Conflicting types for '-(void)viewDidAppear:(id)animated'
Line 32 Passing argument 1 of 'viewDidAppear:' makes integer from pointer without a cast
Any idea's why? Thanks.
 
Did you declare that method in your header? If so, you should remove it as it's unnecessary. Overriding methods doesn't require that you redeclare it in your header, as the method is already declared in the superclass's header.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.