Hey all, one more noob to add to the long list with a (I'm guessing) basic question:
I found the threads on how to easily implement the basic built-in splash screen with creating a Default.png and using sleep(2); (or whatever time length desired) in viewDidLoad, but what I'd like to do is go from the splash screen and use the flip animation to get to the first view of the app. In the case of THIS app, the first view is a random selection from a series of images that the user is presented with. I can't quite figure out how or if the flip animation can be used alongside the sleep function. Anyone know?
I've also seen a different way to close the splash "manually" with the following:
Code:
-(void)viewDidLoad {
UIImage *mySplashImage = [UIImage imageNamed:@"ImageName.png"];
myImageView = [[UIImageView alloc] initWithImage:mySplashImage];
myImageView.frame = CGRectMake(0, 0, 320, 480);
[self.view addSubview:myImageView];
NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(hideSplashScreen) userInfo:nil repeats:NO];
timer = nil;
}
-(void)hideSplashScreen {
myImageView.alpha = 0.0;
NSLog(@"hidden");
}
I figured there would be a way to add in the animation functionality from this method, but as I still have immense noob status, I am unsure how to implement the code...any thoughts from the gurus? Thanks!