Showing Master/Detail UITableView inside UIPopOverController?

You should set the detail view controller's contentSizeForViewInPopover property to the same value as the parent controller.

Up vote 1 down vote favorite share g+ share fb share tw.

I have a UIPopOverController that shows a UIViewController with a UITableview in its view. The cells in the table have a detailedView, but whenever that view gets pushed, the PopOverController increases in size, and I am left with all this white space inside it. Question is this: Can anyone show me how I can have a Master/Detail UITableview show inside a PopOverController whilst preserving its dimensions?

Some of my code if it helps you: //Creating the PopOver with the UIViewController addTaskViewController = AddTaskViewController alloc initWithNibName:@"AddTaskViewController" bundle:nil; UINavigationController *addTaskNavController = UINavigationController alloc initWithRootViewController:addTaskViewController; UIPopoverController *addTaskPopOver = UIPopoverController alloc initWithContentViewController:addTaskNavController; self. AddTaskPopOverController = addTaskPopOver; addTaskPopOverController. Delegate = self; //...neccessary releases... //Showing the popover when a button is pressed - (void) addTasksButtonPressed:(id)sender { //Display the Popover containing a view from AddTaskViewController self.

AddTaskPopOverController setPopoverContentSize:CGSizeMake(400, 700); addTaskPopOverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES; } iphone ipad uiviewcontroller uipopovercontroller link|improve this question asked Apr 14 '10 at 0:24Tilo Mitra896513 100% accept rate.

– Tilo Mitra Apr 14 '10 at 1:51 Figured it out! Thanks a lot Martin. To those who have the same problem, for both ViewControllers in your UITableView (Master and Detail), set its contentSizeForViewInPopover property to the CGSize set in your RootViewController (where you are launching the popup from) – Tilo Mitra Apr 14 '10 at 2:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions