Permalink
Browse files

Made splash screen fade out on app load

  • Loading branch information...
akinsey committed Jun 10, 2012
1 parent 05e11f4 commit 7e902c3f85885a9620df879a220237cc59ceed56
Showing with 10 additions and 34 deletions.
  1. +10 −0 HI Capacity/AppDelegate.m
  2. +0 −34 HI Capacity/en.lproj/MainStoryboard_iPhone.storyboard
View
@@ -7,6 +7,16 @@ @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+ UIImageView *splash = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"launch"]];
+ [self.window.rootViewController.view addSubview:splash];
+
+ [UIView animateWithDuration:0.75
+ animations:^{
+ splash.alpha = 0;
+ }
+ completion:^(BOOL finished) {
+ [splash removeFromSuperview];
+ }];
// Navigation bar background
UIImage *navbg = [[UIImage imageNamed:@"navbar"]
@@ -281,40 +281,6 @@
<image name="42-info.png" width="28" height="28"/>
<image name="83-calendar.png" width="23" height="25"/>
</resources>
- <classes>
- <class className="CalendarViewController" superclassName="TKCalendarMonthTableViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/CalendarViewController.h"/>
- </class>
- <class className="EventDetailsViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/EventDetailsViewController.h"/>
- <relationships>
- <relationship kind="outlet" name="eventDescText" candidateClass="UITextView"/>
- <relationship kind="outlet" name="eventSummaryLabel" candidateClass="UILabel"/>
- <relationship kind="outlet" name="eventTimeLabel" candidateClass="UILabel"/>
- </relationships>
- </class>
- <class className="PostContentViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/PostContentViewController.h"/>
- <relationships>
- <relationship kind="outlet" name="contentLabel" candidateClass="UIWebView"/>
- <relationship kind="outlet" name="dateLabel" candidateClass="UILabel"/>
- <relationship kind="outlet" name="scrollView" candidateClass="UIScrollView"/>
- <relationship kind="outlet" name="titleLabel" candidateClass="UILabel"/>
- </relationships>
- </class>
- <class className="PostsViewController" superclassName="UITableViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/PostsViewController.h"/>
- <relationships>
- <relationship kind="outlet" name="postTableView" candidateClass="UITableView"/>
- </relationships>
- </class>
- <class className="TKCalendarMonthTableViewController" superclassName="TKCalendarMonthViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/TKCalendarMonthTableViewController.h"/>
- </class>
- <class className="TKCalendarMonthViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/TKCalendarMonthViewController.h"/>
- </class>
- </classes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>

0 comments on commit 7e902c3

Please sign in to comment.