Add below code to your view controller..
- (BOOL)prefersStatusBarHidden {
return NO;
}
Note :
- If you change the return value for this method, call the
setNeedsStatusBarAppearanceUpdate
method. - For childViewController, To specify that a child view controller
should control preferred status bar hidden/unhidden state, implement
thechildViewControllerForStatusBarHidden
method.
Related Contents:
- Change status bar text color to light in iOS 9 with Objective-C [duplicate]
- What is causing this: Cannot jump from switch statement to this case label [duplicate]
- Xcode 7 iOS 9 UITableViewCell Separator Inset issue
- How to send POST and GET request?
- Invalid Swift Support / The SwiftSupport folder is empty
- How do I call Objective-C code from Swift?
- How do I iterate over an NSArray?
- Replacement for deprecated sizeWithFont: in iOS 7?
- Objective-C declared @property attributes (nonatomic, copy, strong, weak)
- How do I avoid capturing self in blocks when implementing an API?
- How to change time and timezone in iPhone simulator?
- Check that an email address is valid on iOS [duplicate]
- Best practice? – Array/Dictionary as a Core Data Entity Attribute [closed]
- ARC and bridged cast
- Autoresizing issue of UICollectionViewCell contentView’s frame in Storyboard prototype cell (Xcode 6, iOS 8 SDK) happens when running on iOS 7 only
- How to get root view controller?
- Git – how do I view the change history of a method/function?
- iOS 7 sizeWithAttributes: replacement for sizeWithFont:constrainedToSize
- Subtract 7 days from current date
- Managing multiple asynchronous NSURLConnection connections
- How to Deal with Temporary NSManagedObject instances?
- Picking a Random Object in an NSArray
- ARC – The meaning of __unsafe_unretained?
- Where to put iVars in “modern” Objective-C?
- Error ‘_BSMachError: port 1607; (os/kern) invalid capability (0x14) “Unable to insert COPY_SEND” in Cordova app on iOS 10
- Is the project.xcworkspace file important?
- Difference between nil, NIL and, null in Objective-C
- Xcode intellisense meaning of letters in colored boxes like f,T,C,M,P,C,K,# etc
- NSArray of weak references (__unsafe_unretained) to objects under ARC
- Objective-C property that is readonly publicly, but has a private setter
- Get Current date & time with [NSDate date]
- Objective C message dispatch mechanism [closed]
- What does the @package directive do in Objective-C?
- Class Foo is implemented in both MyApp and MyAppTestCase. One of the two will be used. Which one is undefined
- Change color on checkmark in UITableView
- Create NSString by repeating another string a given number of times
- Property with type SEL in Objective-c
- Singleton release method produces warning?
- Core Data “use scalar properties for primitive data types” check box
- Informal Protocol In objective-C?
- How can you implement this multiline string literal macro in Swift?
- UITabBar not showing selected item images in ios 7
- In Cocoa do you prefer NSInteger or int, and why?
- What’s the difference between XCTAssert and XCTAssertTrue?
- Refer to build number or version number in code
- Implementing -hash / -isEqual: / -isEqualTo…: for Objective-C collections
- Checking if one NSDate is greater than another
- What are the default attributes for Objective-C properties?
- ios 13 – Custom SearchBar with UISearchBar _searchField not working
- Is it possible to cast an NSInteger to NSNumber?