I solved this by adding following lines in ViewDidLoad
UIViewController *c = [[UIViewController alloc]init];
[self presentViewController:c animated:NO completion:nil];
[self dismissViewControllerAnimated:NO completion:nil];
More Related Contents:
- IOS 6 force device orientation to landscape
- iOS device orientation disregarding orientation lock
- Disable orientation change rotation animation
- iPhone Landscape FAQ and Solutions
- Detecting iOS orientation change instantly
- What does the -all_load linker flag do?
- How to use custom fonts in iPhone SDK? [duplicate]
- How to parse a date string into an NSDate object in iOS?
- How to allow only single UIViewController to rotate in both Landscape and Portrait direction?
- Calculate new coordinate x meters and y degree away from one coordinate
- Objective-C – When to use ‘self’
- how to get ip address of iphone programmatically [duplicate]
- How to get the CGPoint(s) of a CGPath
- iTunes Connect API [closed]
- Parsing JSON dates on IPhone
- iOS: Open Source VoIP/SIP Objective-C Code [closed]
- How do I make UITableViewCell’s ImageView a fixed size even when the image is smaller
- How to open preferences/settings with iOS 5.1?
- Moving UITabBarItem Image down?
- UITableView Scroll event
- Best Cocoa/Objective-C Wrapper Library for SQLite on iPhone [closed]
- NSDateFormatter dateFromString returns nil
- iPhone :UITableView CellAccessory Checkmark
- Reference from UITableViewCell to parent UITableView?
- Blocks instead of performSelector:withObject:afterDelay: [duplicate]
- Difference between two NSDate objects — Result also a NSDate
- Opening popup links in UIWebView, possible?
- How to tint UIBarButtonItem background color? [duplicate]
- UISwitch in a UITableView cell
- How to set font size to fill UILabel height?