uipopovercontroller

UIPopoverController automatically resizing to max height on pushViewController

I have a popover containing a UINavigationController. I can display the popover fine, and it contains the navController just fine. The navController contains a tableView and when I select an item it creates a new detail view: DeviceDetailViewController *detailViewController = [[[DeviceDetailViewController alloc] initWithNibName:...

Change pop-over contentsize using navigationcontroller

Hi, I want to show a popover with a custom contentsize. I can do it doing like so UINavigationController* popoverContent = [[UINavigationController alloc] init]; UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 800, 800)]; popoverView.backgroundColor = [UIColor blueColor]; popoverContent.view = popov...

Present Popover from Modal View Controller

I am trying to present a Popover from a button in a UIModalPresentationPageSheet. It crashes the app and returns the following message to the console: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Popovers cannot be presented from a view which does not have a window.' My code works fine in a standard...

Presenting modal view controller from popover

Hi, I have a view controller that is inside a popover, and I want to present a modal view controller from it. Here's my code: EditDateViewController *dateViewController = [[EditDateViewController alloc] initWithNibName:@"EditDateViewController" bundle:[NSBundle mainBundle]]; UINavigationController *navController = [[UINavigationCon...

Access objects from a popcontroller

Hi everyone I will explain my problem briefly summarizing as much as I can. I have a label lets say "Hello" which is found on my RootViewController. I have a popover which appears when I press on a button on my RootViewController. On that popover, I have another button on it and when I press on it, I want it to change the label on the...

Maximum size of a popover

Hi there Could anyone confirm me the maximum size of a popoverview? Thanks ...

UIPopoverController not moving to original position after keyboard slides back down

I'm displaying a popover in ipad with a uinavigation bar. On the second view I have a UISearchController that can display a keyboard. The keyboard pushes the popover up which is fine. However if I now push the 'back' button on the UINavigation bar it dismisses the keyboard which is fine, but the popover doesn't slide back down to its ...

SplitViewController's popover UI error when UISearchBar is in focus.

When a splitview is in portrait mode, the rootView shows as a popover. in this case, my rootView has a tableView with a searchBar at the top. When I tapped the search bar, the keyboard appears, and the splitView's popover automatically adjust its height, but at the same time, I get this in the top of the popover.. Any ideas? Thanks in...

Dismissing UIPopoverController with -dismissPopoverAnimated: won't call delegate?

I have my UIPopoverController with self as a delegate: I receive calls when I tap outside the popover controller, but when I tap inside I want to dismiss too, so I use -dismissPopoverAnimated: but delegate is not called in this case. Is this normal? Is this a bug or I am doing something wrong? newDocPopoverController = [[UIPopoverContro...

change toolbar tintcolor of UIpopovercontroller

hi i want to know is this possible that we can change tint color of toolbar of UIpopovercontroller. i used this code but toolbar color is not changed Searchpopoverobj.MynavigationController.toolbar.tintColor=Searchpopoverobj.MynavigationController.navigationBar.tintColor; ...

UIPopover locking background view

Hello, I am trying to replicate the iPad passcode view. Which basically is a popover with no arrow direction, that locks the background view kinda like a modal view controller. My question: Is there a way to lock the underlying background view when presenting a popover. My idea: The only real solution that i could come up with is pl...

How to present keyboard inside popover?, ipad passcode lock style...

Is it posible to present a keyboard the way is shown when you set a passcode for your ipad? ...

UISplitViewControllerDelegate willHideViewController sends wrong popOverController

I push a UITableViewController into a NavigationController (the NavController returned in the 0th element of a call to UISplitViewController viewControllers). I set this TVC to be the UISplitViewControllers delegate. The newly pushed TVCs delegate functions are getting called as they should but they are called with the popoverControlle...

Adjust UIPopoverController position after resize

I have a UIPopoverController containing a UITableView. The popover is resized in its view controller's -viewDidAppear function to fit the contents of the table. While the popover resizes properly, its arrow is usually no longer pointing at the original CGRect. Is there a way to force the popover to reposition itself after a resize so ...

UIPopoverController display in wrong location

I am switching views within the window. The orientation is sometimes confused. Within one of the windows, when I attempt to display a popover which should be attached to a toolbar button, it is displayed in the location on the screen. If I physically change the orientation of the device, the popover is redraw in the correct location. If...

iPad popup question

Below is some code I am using to display a popup. The first time this is called the popup gets displayed. The 2nd time it is called it fails with a "EXE_BAD_ACCESS" error. It fails on the line "self.myTextPopOver = pop;" If I comment out the line [pop release] everything works OK but that would mean I am leaking memory. // Popover Text ...

Dismissing UIPopoverController when using ABNewPersonViewController

I have an "add Contact" button which when on iPhone I present a navigation controller with root view controller of an ABNewPersonController modally. If on iPad I have got a popover which I can display with the new person controller inside - nice. The problem comes when trying to dismiss. I can dismiss the popover when touching...

Show keyboard with a UIPopover

How can I show the keyboard when my popover shows up? The popover is UIViewController that I call from a popoverController. The popover has an UITextField and when the popover is displayed, the keyboard need to show up too and the cursor go to the UITextfield. I tried to put the becomeFirstResponder under viewDidLoad or viewWillLoad,...

UIPopoverController without arrows?

Hi, I would like to know to make an UIPopoverController without arrows In fact I would like to simulate something like this: See that There is no arrows There is a title that is somehow inside of a expanded top border of the UIPopoverController and not inside of it like in the normal UIPopoverController. I assume this is not reall...

Wrong UIActionSheet layout in popover.

Hello! I’ve got an UIActionSheet with a single button that I show in a popover. In landscape mode there is a plenty of space around the popover, so that it displays with an arrow in the middle and everything is fine: In portrait the popover has to be displayed with an arrow on the right side: Now the button looks a little bit too l...