I would like to display a UITableViewController within a UIPopoverController, but the catch here is that I would like to have the UITableViewController displayed in a landscape orientation even though the viewController which is displaying the UIPopoverController is in portrait orientation.
If there is a way to set the orientation of a UITableViewController, that would be best, but I couldn't find a way to do this.
Any thoughts on how to do this would be appreciated?
Related
As an example, take the Master-Detail Application template project from Xcode, replace the Master UITableViewController with a regular UIViewController and put a label in the center. See images below. In portrait orientation the label appears as expected, but in landscape it is gone. This is not a matter of bad constraints.
If I change the UISplitViewControllerDisplayMode to PrimaryOverlay the label does appear after swiping in landscape.
I first experienced this problem when setting a custom tableview header on the default UITableViewController that is in the template project, so it is not only a problem when using a UIViewController.
Has anyone else experienced this and know a solution?
I would like for iPad that on portrait orientation shows only the MasterView of UISplitViewController, and on landscape show the both master view and detail view?How should I do?
the system is iOS 7.
As per my experience, Use UIViewController instead of using UISpiltViewController .
In this UIViewController have two UIView (1-UITableView and, 2-DeatilView subclass of UIView). Now have segue to DetailView from cell of UITableView . In UIViewController you can have TableView and DetailsView to display like SpiltView.
For LandScape and Portrait Resize the TableView.
Means Now you can customise according to orientation.
I am fixing the orientation of the uisplitView controller to landscape in code but it does not show the detailView controller it hides that view is there a way in which forcibly do only landscape orientation for this.
Check this sample project with UISplitViewControllers, UINavigationControllers and UITabBars:
https://github.com/alexth/TBSV
I have application that is only landscape with no other orentation supported.
But when I open modal view (modal contains UIWebView ([printView setView:webView])) it rotates the device to portrait.
The content stays in landscape view only iPad orientation. I mean the statusbar is rotated like it's in portrait. So I want no rotation at all, just to stay in landscape.
I have solved the problem. Problem was in viewController that was programaticly created.
Solution is to create viewControler and in .m file force landscape orentation.
I want same view in portrait and landscape in splitview in iPad Application. In portrait I get rootviewcontroller as popOver. I don't want that. It should be same as it is displayed in landscape mode. Is it possible?
Well, I'm afraid that the term same is a bit confusing here. There is no problem for you to develop a similar view, but evidently with other size and proportions. You can perfectly dismiss the popover on the portrait mode, and compose your new view with a tableview controller at the left side of the screen.