"Splashscreen"을 창 상단에 추가해야합니다. "splashcreen"자체는보기가 아닙니다. 이 시스템은 단지 default.png을 표시 줘야 :
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
splashScreen = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, -20.0f, 320.0f, 480.0f)];
splashScreen.backgroundColor = [UIColor blackColor];
splashScreen.image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default" ofType:@"png"]];
[self.window addSubview:splashScreen];
[self.window makeKeyAndVisible];
[self performSelector:@selector(applicationDidStart) withObject:nil afterDelay:0.1];
return YES;
}
스플래시 스크린은 클래스 변수입니다, 당신은 splashView로 활동 표시기를 추가 할 수 있습니다. 이 시작 화면에있는 하위 뷰를 추가 할 수 있습니다 생각
- (void) applicationDidStart {
// some thing that takes a while
[splashScreen removeFromSuperView];
[splashScreen release], splashScreen = nil;
}
"SplashScreen"이라고 말하면서 그가 Launch Image를 언급하고 있다고 생각합니다. 당신이 옳을 수도 있고 나의 인식이 틀릴 수도 있습니다. –
그건 "SplashScreen"에 인용 부호가 붙는 방법입니다.) – rckoenes
오른쪽 .. "SplashScreen": D :) –