How do you hide the status bar in ios 9?
This is now deprecated:
[UIApplication sharedApplication] setStatusBarHidden:YES];
How do you hide the status bar in ios 9?
This is now deprecated:
[UIApplication sharedApplication] setStatusBarHidden:YES];
Swift-3
I got the Information From Here
Change
func
tovar
Delete
()
Change
->
to:
This works because a computed variable has a getter function, so the function you were implementing before simply turns into the getter function
2016 onwards: simple Thing like
On your info.plist add the following two property for statusBar Hidden
View controller-based status bar appearance (Boolean: NO)
Status bar is initially hidden (Boolean: YES)
By Source
or
Old answers ! ...
add
application.statusBarHidden
indidFinishLaunchingWithOptions
and add
in
info.plist
add thisView controller-based status bar appearance
setNO
viewcontroller based hidden set
Add method in your view controller.
Objective -C
Swift upto 2
(GOOD) 2016.5.17 in iOS 9.0 worked nicely.
Updated Answer
For Objective-C:
For Swift: