application:didFinishLaunchingWithOptions: 에서 여러가지 효과를 줄 수 있다.


NSThread.sleepForTimeInterval: 을 사용하여 보여지는 최소 시간을 보장할 수 있다.



Launch image 를 보여주는 view 를 만들어 앱이 보여질 때 FadeIn 효과를 줄 수 있다.


UIImage *image = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default" ofType:@"png"]];

UIView *imageView = [[UIImageView alloc] initWithImage:image];

[image release];

imageView.frame = self.window.bounds;

[self.window addSubview:imageView];


[UIView animateWithDuration:1.0f delay:0.0f options:UIViewAnimationOptionLayoutSubviews animations:^{

    imageView.alpha = 0.0f;

} completion:^(BOOL finished) {

    [imageView removeFromSuperview];

    [imageView release];
}];


'Mobile > iOS' 카테고리의 다른 글

WiFi On/Off  (0) 2012.07.25
Bluetooth On/Off  (0) 2012.07.25
상태바 스타일 변경  (0) 2012.07.24
HTTP 파일 이어받기  (0) 2012.07.11
Rounded corners on a view  (0) 2012.07.02

+ Recent posts