In this tutorial, I will show you how to create splash screen in IOS. In creating splash screen in IOS, all you have to do is to replace the image name Default.png, Default@2x, Default-568h@2x, file.
Default.png - 320 pixels width X 480 pixels height
Default@2x - 640 pixels width X 960 pixels height
Default-568h@2x - 640 pixels width X 1136 pixels height
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
sleep(3);
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
add the sleep(3) to load splash screen for 3 seconds. That's it hope you enjoy this tutorial.
No comments:
Post a Comment