uipopovercontroller

Core Plot: How to present popover from a bar selected by the user

天大地大妈咪最大 提交于 2019-12-01 00:38:52
What I would like to accomplish I am using Core Plot (1.1) to draw a bar chart and I would like to present a popover with further details below the bar which has been selected (tapped) by the user. Code My code looks like this: - (void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)idx { NSNumber *yValue = self.values[idx]; NSLog(@"barWasSelectedAtRecordIndex x: %i, y: %@",idx,yValue); NSDecimal plotPoint[2]; NSNumber *plotXvalue = [self numberForPlot:plot field:CPTScatterPlotFieldX recordIndex:idx]; plotPoint[CPTCoordinateX] = CPTDecimalFromFloat(plotXvalue.floatValue);

iOS UIPopoverController transparency / alpha

杀马特。学长 韩版系。学妹 提交于 2019-11-30 22:00:54
I'm making an iPad app where the client wants a popoverview with transparency (alpha). They gave me an example app, screenshot can be found here I've read that UIPopoverController is the worst thing to customize as there are only a few properties to set. LINK & LINK I tried it with lowering a subview's alpha but then the content of the view gets transparant too. Am I missing an option, or doing something wrong to get this right? Also, I have little experience with subclassing, so any suggestions if thats the case would be more than appreciated. -Jasper I created a subclass of UIView for you

IOS7 navigatinBar tintColor change in popover

核能气质少年 提交于 2019-11-30 19:28:20
I developed iPad application. I'm opening some screens in popover with navigation controller. But I did not change navigationcontroller tint color in IOS 7. How can I change this color. thanx UINavigationController *navigationController = [[[UINavigationController alloc] initWithRootViewController:airportsSearch] autorelease]; navigationController.navigationBar.barTintColor = [UIColor blackColor]; navigationController.navigationBar.translucent = NO; self.popOver=[[UIPopoverController alloc] initWithContentViewController:navigationController]; self.popOver.delegate = self; [self.popOver

Core Plot: How to present popover from a bar selected by the user

大兔子大兔子 提交于 2019-11-30 19:08:54
问题 What I would like to accomplish I am using Core Plot (1.1) to draw a bar chart and I would like to present a popover with further details below the bar which has been selected (tapped) by the user. Code My code looks like this: - (void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)idx { NSNumber *yValue = self.values[idx]; NSLog(@"barWasSelectedAtRecordIndex x: %i, y: %@",idx,yValue); NSDecimal plotPoint[2]; NSNumber *plotXvalue = [self numberForPlot:plot field

Crash/SIGABRT when I try to present a UIPopoverController

蓝咒 提交于 2019-11-30 18:36:08
Hi I am at my wits end with what I am doing wrong here. I am using ios5 and nothing crashes if I do not call presentPopoverFromBarButtonItem. Has anyone experienced anything similar? I checked the apple developer forums, google, stack overflow and couldn't find anything. Running bt on gdb didn't reveal any hints either. UIViewController *viewTwo; viewTwo = [[ViewTwo alloc] initWithNibName:@"ViewTwo" bundle:nil]; UIPopoverController *popover; popover = [[UIPopoverController alloc] initWithContentViewController:viewTwo]; [popover presentPopoverFromRect:[theButton bounds] inView:theButton

Displaying a UIDatePicker inside of a UIPopover

纵然是瞬间 提交于 2019-11-30 15:57:22
I'm using the following code to display a UIDatePicker within a UIPopover that is displayed when a user clicks a UIButton . The problem is, it is being displayed in an awkward position and I want to add a UIToolBar above the datePicker where there is extra space. This will have cancel and done button. How can I accomplish this? The button that it is displayed from is the Date of Birth one. - (IBAction)dateOfBirthButtonPressed:(id)sender{ UIViewController* popoverContent = [[UIViewController alloc] init]; UIView *popoverView = [[UIView alloc] init]; popoverView.backgroundColor = [UIColor

How to add a view on top of a UIPopoverController

十年热恋 提交于 2019-11-30 15:32:04
I've got an iPad app with a “drawer” table displayed in a popover. The user can tap-and-hold on an item in the drawer to drag that item out of it and into my main view. That part works fine; unfortunately, the view being dragged appears under the popover, and is too small to be visible until it's dragged out from underneath it. If I add the view as a subview of the view controller in the popover, it gets clipped by the popover's frame, and as I can't access the UIPopoverController 's view, I can't disable its layer's masksToBounds —and that probably wouldn't be a great idea anyway. I suspect

Get on screen coordinates of a certain UITableViewCell?

拟墨画扇 提交于 2019-11-30 09:45:11
So, I have this UITableView . It's in an iPad application. Some of the cells have an accessory button on the right (the small round arrow). When that is pressed, I present a popover view where the user can select actions related to the table cell that they touched. So far, nothing of this is difficult or exceptional. But the popover view wants to know where it originates from, so that it can draw the little arrow pointing there. I would naturally like that arrow to point at the table cell the popover relates to. How can I find out the current on screen coordinates for a certain cell in a table

Dismiss Popover after touch

ⅰ亾dé卋堺 提交于 2019-11-30 09:15:15
I've created a popover inside my MainViewController when some button its touched using the UIPopoverPresentationController and set like it's delegate like it's showed in the WWDC 2014, in the following way : MainViewController.swift class MainViewController : UIViewController, UIPopoverPresentationControllerDelegate { @IBAction func showPopover(sender: AnyObject) { var popoverContent = self.storyboard?.instantiateViewControllerWithIdentifier("PopOverViewController") as UIViewController popoverContent.modalPresentationStyle = UIModalPresentationStyle.Popover var popover = popoverContent

UIPopoverController's view controller gets resized after keyboard disappears

点点圈 提交于 2019-11-30 07:02:30
问题 I have a view controller inside a UIPopoverController . When I open a keyboard for a text field that belongs to the view in the popover, the view resizes to accommodate the keyboard. However, the view doesn't go back to the original size when the keyboard is dismissed. Any ideas how to get it to resize back to what it was? 回答1: Had this problem myself recently. The way I got around it was to observe the keyboard disappearing in the controller which controls the UIPopoverController: [