앱 대리인으로 애플리케이션을 시작하는 동안 여러 컨트롤러를 사용하고 있습니다. 하나의 컨트롤러는 등록 용이고 두 번째 컨트롤러는 탭바입니다. tabbar가 잘로드되고 있었지만 등록 컨트롤러를 창에 밀어 넣었을 때 내용이 20 유닛 씩 올라 갔고 맨 아래에 좋은 흰색 빈 화면이 나타납니다. 따라서 viewdidload 메서드에서 등록보기 컨트롤러의 프레임을 다시 만들고 20 단위 아래로 밀어 넣었습니다. 이 코드는 응용 프로그램 실행에 대한 내 응용 프로그램 위임에ViewController가 푸시 될 때 화면 하단에서 20 픽셀 흰색이 남음
self.view.frame = CGRectMake(0, 20, self.view.frame.size.width, self.view.frame.size.height);
및 코드 등록 컨트롤러 누를 때 공백은 하단에 왜 거기에 사람이 알고 있다면
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if (![self accountExists]) {
//code if account does not exists on iphone app database
self.registerAccount = [[registerViewController alloc] initWithNibName:@"registerViewController" bundle:nil];
[window addSubview:registerAccount.view];
}
else if([self autoLoginForAnyAccount]){
//code for autologin to app
}
else {
self.tabBarController.selectedIndex = 1;
self.tabBarController.delegate = self;
[window addSubview:tabBarController.view];
}
[window makeKeyAndVisible];
return YES;
}
그때 나와 함께 공유하시기 바랍니다이었다.
이유를 아십니까? 나는 같은 문제로 어려움을 겪고있다. – Hemant