// // MyQLPreviewController.m // Apex Mobile // // Created by Ray on 02/03/2018. // Copyright © 2018 United Software Applications, Inc. All rights reserved. // #import "MyQLPreviewController.h" @interface MyQLPreviewController () @end @implementation MyQLPreviewController - (void)viewDidLoad { [super viewDidLoad]; // self.toolbarItems = nil; // for(UIView* v in self.view.subviews) // { // if ([v isKindOfClass:[UIToolbar class] ]) { // v.hidden = YES; // } // } // Do any additional setup after loading the view. } -(void)viewWillLayoutSubviews { [super viewWillLayoutSubviews]; // self.navigationController.navigationBar.hidden = YES; // self.navigationController.toolbar.hidden = YES; // [self.navigationController.toolbar removeFromSuperview]; // UIView* v1 = self.navigationController.toolbar.superview; // UIView* v2 = self.navigationController.toolbar; [self.navigationController setToolbarHidden:true]; // self.navigationController.toolbar.backgroundColor = [UIColor clearColor]; //把tool bar frame置为空,实现隐藏 self.navigationController.toolbar.frame = CGRectMake(0, 0, 0, 0); // [self.navigationController.toolbar.superview removeFromSuperview]; // // custom view demonstrate // UIView *topView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 30)]; // topView.backgroundColor = [UIColor redColor]; // // [self.view addSubview:topView]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } /* #pragma mark - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. } */ @end