代码: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"页面调的时候隐藏工具条"; //当跳转的时候,隐藏工具条 [self.tabBarController setHidesBottomBarWhenPushed:YES]; }
https://developer.android.com/training/system-ui/navigation.html View decorView = getWindow().getDecorView(); // Hide both the navigation bar and the status bar. // SYSTEM_UI_FLAG_FULLSCREEN is only available on Android 4.1 and higher, but as // a ge
Android: 在 AndroidManifest.xml 里 <activity android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> </activity> iOS: 在 Info.plist 里 View controller-based status bar appearance: NO Status bar is initially hidden: YES