Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

hide status bar ios

override func viewWillAppear(animated: Bool) {
    super.viewWillAppear(animated)
    UIApplication.sharedApplication().setStatusBarHidden(true, withAnimation: UIStatusBarAnimation.None)
}

override func viewWillDisappear(animated: Bool) {
    super.viewWillDisappear(animated)
    UIApplication.sharedApplication().setStatusBarHidden(false, withAnimation: UIStatusBarAnimation.None)
}
Comment

PREVIOUS NEXT
Code Example
Swift :: swift create label programmatically 
Swift :: swift set view z order front 
Swift :: convert string to int swift 
Swift :: swift open web page 
Swift :: remove child from firebase swift 
Swift :: declaration of empty dictionary in swift language 
Swift :: Preload database in app with Realm swift 
Swift :: swift + time delay call main thread 
Swift :: how to select but not focus textfield swift 
Swift :: swift uibutton programmatically set ontap function 
Swift :: loop key value swift 
Swift :: alamofire failure response body 
Swift :: swiftui play mp3 
Swift :: set color for uibutton programmatically swift 
Swift :: swift thread.sleep 
Swift :: deselect cell swift 
Swift :: swift date difference in days 
Swift :: swift reload tableviewcell at index 
Swift :: string index in swift 
Swift :: check if string in array of string swift 
Swift :: swift 5 get first character of string 
Swift :: change ui button swift 
Swift :: socket io swift 
Swift :: how to show notification icon on tabbar item swift 
Swift :: swiftui datepicker text color 
Swift :: swiftui line break text 
Swift :: convert nscfstring to dictionary swift 
Swift :: Swift Change Value of a Variable 
Swift :: swift increase int value 
Swift :: Assignment Operators Swift 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =