uipopovercontroller

PopoverPresentationController coming as nil

℡╲_俬逩灬. 提交于 2019-12-12 21:25:44
问题 Created a SingleViewApplication in that I have placed a button. Now clicking on button I need to display a tableView as popover. The TableViewController is created in xib. The issue is tableViewController.popoverPresentationController always comes as nil see below code let filterVC = TableViewController(nibName: "TableViewController", bundle: nil) var filterDistanceViewController = UINavigationController(rootViewController: filterVC) filterDistanceViewController.preferredContentSize = CGSize

popOver table view

萝らか妹 提交于 2019-12-12 10:04:33
问题 In my project , On clicking the button the string present in the button Action method should store in popover table view cell. I cam able to store a single sting , to the first cell .... And now my problem is i had Four buttons each button action consists of 4 strings , and now the should at a time to the popover table view ,,, #import "SecondDetailViewController.h" -(IBAction)viewButtonPressed:(id)sender { [super viewDidUnload]; //create the view controller from nib self

Dismiss popover when clicking a uibutton

孤街浪徒 提交于 2019-12-12 09:25:21
问题 I do have a popup view controller generated programmatically without a storyboard from the main view controller and would like to dismiss it once the input is being introduced by the user with a Done button on a tool bar at the popupview controller. I have been trying to use a protrocoll to dismiss the popover but it does not work. I have been fostering and applying several suggestions found in internet but all gave the same negative result. Do I oversee something? Here is the relevant code:

Change preferred content size of PopOverViewController on fly

爱⌒轻易说出口 提交于 2019-12-12 05:28:38
问题 I am trying to change the preferred content size of a UIPopOverController from inside the childViewController. Firstly I present PopOverViewController this way DateViewController *dateView = [[DatePickerViewController alloc] initWithNibName:@"DateViewController" bundle:nil]; UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:dateView]; m_tableCell = (NotesCell *)[m_tableView cellForRowAtIndexPath:indexPath]; popViewController = [

Dismissing a ViewController shown as Popover segue from within another Popover

雨燕双飞 提交于 2019-12-12 03:58:45
问题 My storyboard is using a UINavigationController (VC0), I segue using a UIPopover to load a new UIViewController (VC1). From this new UIViewController , I am popping to a new UIViewController (VC2). When I attempt to close this newest popover, I am being quit back to the UINavigationController . The code that I'm using in VC0 to show the VC1 as popover, VC1 to VC2 is the same code (different identifier though): [self performSegueWithIdentifier:@"titlePopover" sender:self]; The code that I'm

Popover in UITableViewcell not coming immediately .

二次信任 提交于 2019-12-12 03:51:38
问题 i have a dynamic tableviewcontroller SideBarTableViewController.m/.h . Have a pop up view controller - popUpViewController.m/.h Have subclassed a cell of SideBarTableViewController -> RegisterTableViewCell.m/.h and added a button outlet from the cell to it. Have connected the cell to popUpViewController in storyboard using "present As popover" segue and the segue is given identifier "popover". The anchor point in storyboard has been set to Tableview for now , changing it later in preparesegue

UIPopoverController: dealloc reached while popover is still visible

此生再无相见时 提交于 2019-12-12 03:34:40
问题 I am working on an app that lets the user select images from his own photo album. It works on iPhone, but not on iPad. I made a UIPopoverController , and it all works fine, the user can pick a photo, but when the user pushes "USE" button. the app cashes a says UIPopoverController dealloc] reached while popover is still visible here is the code: - (void)choosePhotoFromLibraryipad:(id)sender{ if(![popoverController isPopoverVisible]){ imagePicker = [[UIImagePickerController alloc] init];

Is there a UIImagePickerController replacement that I can use from a controller that is already in a popover?

限于喜欢 提交于 2019-12-12 03:04:46
问题 I'm writing an app that uses UIImagePickerController to let the user choose images from their library. On the iPad, it shows it in a popover (because you must) but the controller which is showing it is already in a popover, and you're not allowed to show a popover from another popover. I can't rework the whole app to avoid the files controller being in a popover, so what I'd like to do is to push the image picker onto the files controller's navigation stack. Obviously this isn't going to work

UITableViewCell becomes unresponsive

有些话、适合烂在心里 提交于 2019-12-12 02:29:51
问题 I have a popover screen, with inside it : a label, that may or may not appear (title) a search bar, that may or may not appear a label, that may or may not appear, and has a variable height (help label) a scrollview, that may or may not appear, and has a variable height (some infos about the following table) a table view In order to present something nice, in viewDidLoad , I move the various frames to place the objects correctly and not have unused spaces cluttering my popover. Besides, I

UIImagePickerController in UIPopOverController is not opening up in iOS 5

假如想象 提交于 2019-12-12 02:18:34
问题 in my iPad app i am opening Photo Library in a popover controller. It was working fine in iOS 4 but now its not opening up in iOS 5. i am using the following code for opening Photo Library, UIImagePickerController* picker = [[UIImagePickerController alloc] init]; picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; picker.delegate = self; picker.mediaTypes = [UIImagePickerController availableMediaTypesForSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; popOver = [