uipopovercontroller

Popover view from UICollectionView causing unwind

时光毁灭记忆、已成空白 提交于 2019-12-12 00:55:33
问题 I have a matrix of data (players) displayed in a UICollectionView . I want details on a player to display in a popover view when the user touches a cell. I asked this question earlier and got it to work. But since then, a strange problem developed. When I touch a cell, the popover appears, but the main view unwinds two screens (!?) and the app crashes with this error: 'Terminating app due to uncaught exception 'NSGenericException', reason: '-[UIPopoverController dealloc] reached while popover

Popover with Splitview inside

ぐ巨炮叔叔 提交于 2019-12-11 23:34:03
问题 I want to create programmatically a UIPopoverController with a UISplitViewController inside. The Problem is that the Master-View is overlaying the Detail-View. It seems that the Master-View is popped over the Detail-View. That means i can see both, Master & Detail but the Split is not correct. Have a look here: http://i.stack.imgur.com/En70W.png Any idea how to solve that ? Thx .m File UISplitViewController *customSplitVC = [[UISplitViewController alloc] init]; ListViewController

UITableView inside popover will not scroll

↘锁芯ラ 提交于 2019-12-11 20:15:29
问题 I am trying to fix someone's code and am running into a problem. Here is the situation: I have a full screen UIViewController that has a bottom bar button. When I press that button, it shows a popup view controller in the bottom left of the screen. That view controller inside the popup also has a button, and when I press THAT button it pushes a new view controller into my popup window. That new view controller is a UITableView that can have some large number of elements. The problem is that

Making a popover segue´s View Controller stay persistent (only allocate one instance)

与世无争的帅哥 提交于 2019-12-11 19:25:18
问题 I programmed my app initially for iPhone using a tab bar controller were the view controllers are initialized once and stays persistent - it does not initialize a new instance of the view controller when I tap the tab bar. on the iPad I am using a different GUI were instead I have one main view that always stays on the screen, and the rest are popovers segueing from the main view. I want the popovers to stay persistent (only initialize once) what is the best way of archiving this. If I had

iPad UIPopoverController does not go over inputView in UITextView

醉酒当歌 提交于 2019-12-11 18:27:13
问题 I am trying to set up a popover to point to a UIButton in a view that is used as a "inputView" to a UITextView. I can get everything to work and the correct data is going into the UIPopoverController. But it is exhibiting a behavior that is not what I expected. So here is what I have. The following method is written in a UIView subclass that is the inputView of the UITextView and is also the view in which the button resides. - (IBAction)buttonTouchDown:(id)sender { UIButton *button =

PopoverPresentation Controller not displaying on centre of the screen with the top left arrow direction

爱⌒轻易说出口 提交于 2019-12-11 17:04:47
问题 I want to display pop up in a centre of the screen. The below image displaying it's moving the bit of left side. I have tried below code to display popover controller. func displayPopoverVC() { let popOver = popupArtistStoryboard.instantiateViewController(withIdentifier: "MeasurementPopupVC") as! MeasurementPopupVC popOver.modalPresentationStyle = .popover popOver.popoverPresentationController?.permittedArrowDirections = .up popOver.popoverPresentationController?.sourceView =

How to implement UIAlertcontroller as PopOver(with arrow direction up) in a UIBarbutton

一笑奈何 提交于 2019-12-11 14:24:22
问题 I know that this is old school question - but I did searched the web and found solutions to be deprecated. How would I implement a UIAlertcontroller as popOver(with arrow direction up) in a barButton . Here's the code: - (IBAction)eventSortingAction:(UIBarButtonItem *)sender { UIAlertController * view= [UIAlertController alertControllerWithTitle:@"My Title" message:@"Select you Choice" preferredStyle:UIAlertControllerStyleActionSheet]; UIAlertAction* ok = [UIAlertAction actionWithTitle:@"OK"

Barbutton item in navigtion bar leftbar button got stick to the top left conrner

醉酒当歌 提交于 2019-12-11 13:53:08
问题 bar button got stick to the y origin as 0 to navigation bar and x as 0.but i want to add some y position to barbutton item. UIBarButtonItem *barbutton; barbutton = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:self action:@selector(onbackbtnpressed:)]; [barbutton setWidth:30]; [barbutton setTintColor:KANEKA_BLUE_COLOR]; [barbutton setAccessibilityFrame:CGRectMake(10, 10, 30, 20)]; self.navigationItem.leftBarButtonItem = barbutton; Please tell me how

Table view is not getting updated after dismissing the popover?

五迷三道 提交于 2019-12-11 13:31:26
问题 I'm banging my head for some time due to this issue. I precise my scenario in detail. I have a table view where I can add data using a popover which gets displayed on clicking the '+' button in the navigation bar. I get the values from the popover but where I'm stuck is, the data received is not getting reflected in the tableview. If I move back and forth it gets displayed. Tried to reload the table with different possibilities but nothing works. If you do want a taste of my code, you can get

Navigation inside a UIPopoverController

元气小坏坏 提交于 2019-12-11 11:07:25
问题 I have a UIPopoverController that consist of table view. This pop over controller displayed well, and I already set the delegate didSelectRowAtIndexPath just fine. Right now, I want to make some transition into "detail view controller" based on table item clicked. Then on destination view, it has back button like a pushViewController but it doesn't work well. It wont navigate into detail view Controller. This is my didSelectRowAtIndexPath : - (void)tableView:(UITableView *)tableView