0

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

在此处输入图像描述

- (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));

    }
    }
4

1 回答 1

2

确保您的工具栏视图属性是这样的

在此处输入图像描述

于 2013-06-02T07:21:13.450 回答