2
로딩을 시작할 때 makeKeyAndVisible
이라는 UIWindow를 만들었습니다. 끝나면 내 기본 UIWindow makeKeyAndVisible
. 하지만 내 문제는 텍스트 필드를 클릭하면 키보드가 나타나지 않는다. 이것은 Cursor is blinking in UITextField but keyboard doesn't appear에서 물어 보지만 올바른 대답을 찾을 수 없습니다.키보드에 여러 개의 UIWindows가 나타나지 않습니다.
EDIT : UIView에서 주소 표시 줄을 클릭하면 키보드가 나타나지만 입력 할 수 없습니다. 하지만 Google의 페이지에서 검색 텍스트 필드를 클릭하면 키보드가 나타나지 않습니다.
- (void)showLoading:(NSString*)text
{
loadingWindow = [[UIWindow alloc] init];
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
mainWindow = UIApplication.sharedApplication.keyWindow;
[loadingWindow setFrame:CGRectMake(0, 0, boundWidth, boundHeight)];
[loadingWindow setRootViewController:[[UIViewController alloc] init]];
[loadingWindow.rootViewController setView:[[UIView alloc] init]];
[loadingWindow.rootViewController.view setFrame:loadingWindow.frame];
[loadingWindow setHidden:NO];
}
- (void)hideLoading
{
[loadingWindow setHidden:YES];
[loadingWindow removeFromSuperview];
}
왜 새 창을 추가 하시겠습니까? iOS 응용 프로그램은 하나의 창만 있어야하며 AppDelegate에서만 설정해야합니다. – AMayes
나는 네가 틀렸다고 믿는다. http://stackoverflow.com/questions/8232398/advantages-problems-examples-of-adding-another-uiwindow-to-an-ios-app – AliBZ
"앱이 외부 장치 화면에 콘텐츠를 표시 할 수있는 경우가 아니라면 , 응용 프로그램은 하나의 창만 있습니다. " [UIWindow documentation] (http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWindow_Class/UIWindowClassReference/UIWindowClassReference.html). – AMayes