presentModalViewController
을 사용하여 새보기를 내 응용 프로그램에 추가하려고합니다.presentModalViewController를 사용하여 새보기의 위치에 문제가 있습니다
ASpotImageViewController *aSpotImage = [[ASpotImageViewController alloc] initWithNibName:@"ASpotImageView" bundle:nil spotID:spotid];
aSpotImage.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
//NSLog(@"frame is %@", aSpotImage.view.frame);
//NSLog(@"origin is %@", aSpotImage.view.frame.origin);
NSLog(@"description is %@", aSpotImage.description);
[aSpotImage setModalPresentationStyle:UIModalPresentationFullScreen];
[self presentModalViewController:aSpotImage animated:YES];
그러나이 방법을 사용하면 새로운보기가 약 40 픽셀 정도 화면에 나타나고 아래쪽이 잘립니다. 무엇이 이것을 일으킬 수 있습니까? 이 코드를 사용하는 다른 경우에는이 문제가 없습니다.
화면에 새로운 빈 탐색 모음 만 나타납니다. 실제로는 밀어 넣으려고하는 새로운 뷰와 같은 색 인 검은 색 공간을 남깁니다. 하지만 부모보기에는 흰색 배경이 있습니다. 단지 더 많은 것을 혼란스럽게합니다. – gurooj