UITabBar 的下半部分被手机本身覆盖
我有这个应用程序,目前有 3 个屏幕。第一个屏幕有 UItableView 和 NavigationController。第二个屏幕仍然是 UITableView,它从第一个屏幕向下钻取。在第三页上,我尝试调用 tabbarcontroller 但当视图出现时,我的选项卡栏被切成原始大小的一半。这是片段。
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
// Custom initialization
}
[self.view addSubview:tabBarController.view];}
!
有人吗?提前致谢
I have this application which have 3 screen for now. The first screen has UItableView with NavigationController. The second screen is still UITableView which drill down from the first one. On the third page I tried to call tabbarcontroller but when the view appeared, my tabbar was cut to half of the original size. Here is the snippet.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
// Custom initialization
}
[self.view addSubview:tabBarController.view];}
!
Anybody? Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
if ((self = [super initWithNibName:nibNameOrNil 捆绑:nibBundleOrNil])) {
}
[self.view addSubview:tabBarController.view];
[self.view setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight];
}
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
}
[self.view addSubview:tabBarController.view];
[self.view setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight];
}