【发布时间】:2011-08-18 06:39:17
【问题描述】:
我正在尝试使用 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 像素左右,并且底部被切断。这可能是什么原因造成的?在我使用此代码的其他情况下,我没有这个问题。
【问题讨论】:
标签: iphone objective-c modalviewcontroller viewcontroller