-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSplashViewController.m
53 lines (41 loc) · 1.11 KB
/
SplashViewController.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// SplashViewController.m
// Traffic Sense
//
// Created by Alex Pereira on 3/23/12.
// Copyright (c) 2012 UBC. All rights reserved.
//
#import "SplashViewController.h"
@interface SplashViewController ()
@end
@implementation SplashViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
[self performSelector:@selector(dismissModalViewControllerAnimated:) withObject:
[NSNumber numberWithBool:YES] afterDelay:5.0];
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
@end