gpt4 book ai didi

ios - 打开应用程序时底部工具栏不见了?

转载 作者:行者123 更新时间:2023-11-28 22:33:09 25 4
gpt4 key购买 nike

当我加载应用程序时,我的底部工具栏不见了,但是当我将工具栏移动到屏幕中央时,它显示了。我的 View 框架默认为 0,0,320,480。那为什么底部工具栏没有出现?检查图像,你可以看到顶部栏,但底部栏不见了,它没有隐藏在代码或属性中,当我将它移动到顶部或中心屏幕的强文本**我们可以看到**

enter image description here

- (void)viewDidLoad {
UIAlertView* _alertView = [[UIAlertView alloc] initWithTitle:@"Loading Chapters..."
message:@"\n"
delegate:self
cancelButtonTitle:nil
otherButtonTitles:nil];

UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
// UIProgressView *loading=[[UIProgressView alloc]initWithProgressViewStyle:UIProgressViewStyleBar];

// loading.center=CGPointMake(50,100);
spinner.center = CGPointMake(139.5, 75.5); // .5 so it doesn't blur

[_alertView addSubview:spinner];
// [_alertView addSubview:loading];

[spinner startAnimating];
[_alertView show];
if(loadingProgressBar+1>[sharedManager.spineArray count]) {

[_alertView dismissWithClickedButtonIndex:0 animated:YES];
}


[_alertView dismissWithClickedButtonIndex:0 animated:YES];
[super viewDidLoad];

if (UIDeviceOrientationIsLandscape([UIDevice currentDevice].orientation))

{
webView.frame=CGRectMake(0,0,480,315);

BottomBar.frame=CGRectMake(0,260, CGRectGetWidth(self.view.bounds),41);

//NSLog(@"%f%f",CGRectGetHeight(self.view.bounds), CGRectGetWidth(self.view.bounds));

}
}

最佳答案

确保你的工具栏 View 属性是这样的

enter image description here

关于ios - 打开应用程序时底部工具栏不见了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16880531/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com