jjzjj

UIPopovercontroller

全部标签

ios - 缺少 UIPopoverController 的 PopoverBackroundViewClass 属性

我正在使用最新的Monotouch5.2.4。作为我开发的一部分,我正在尝试更改PopoverController的背景边框。根据苹果文档,这可以使用从UIPopoverBackgroundView类继承的自定义类来管理。所以我创建了如下类publicclassMyPopoverBackground:UIPopoverBackgroundView{publicMyPopoverBackground(){UIImageViewimgBackground=newUIImageView();UIImageimg=UIImage.FromFile(@"SupportData/Popbg.png

ios - 如何在 iOS7 的 UIPopoverController 中更改导航栏背景/颜色?

如标题,在iOS7中,如何更改UIPopoverController中的导航栏背景/颜色?我正在使用下面的方法,但是不起作用UINavigationController*navController=[[UINavigationControlleralloc]initWithRootViewController:packListViewController];[navController.navigationBarsetBarTintColor:[UIColorblackColor]];if(_packListPickerPopover==nil){_packListPickerPopo

ios - UIPopoverController 中 UINavigationBar 的色调颜色不起作用

代码:UIViewController*viewController=[[UIViewControlleralloc]initWithNibName:@"NibName"bundle:nil];UINavigationController*navigationController=[[UINavigationControlleralloc]initWithRootViewController:viewController];navigationController.navigationBar.tintColor=[UIColorredColor];self.popoverControl

objective-c - 弹出错误 - [UIPopoverController dealloc] 在弹出窗口仍然可见时到达

这个问题在这里已经有了答案:关闭10年前。PossibleDuplicate:UIPopovercontrollerdeallocreachedwhilepopoverisstillvisible我正在创建一个通用应用程序并尝试从相机胶卷中选择一张图片。在iPhone上工作正常,iPad需要一个弹出窗口,所以已经这样做了,现在不断出现错误-[UIPopoverControllerdealloc]在popover仍然可见时到达。我研究过:StackLinkStackLink和谷歌,没有什么能解决这个问题卡住了,感谢任何建议我在.h中实现了popover委托(delegate).m-(vo

ios - 模态呈现的 UIPopoverController 在 iOS 5 中不起作用

首先,我们可以在这里谈谈iOS5吗?还是仍在保密协议(protocol)中?如果我们不能谈论它,请忽略我的问题。通过使用安装了iOS5的iPad测试我的应用程序,我发现我的“模态”弹出窗口存在问题:可以通过点击它的外部来关闭它,换句话说,它不是模态的!我不知道我做错了什么。ViewController使用以下代码打开弹出窗口:AddProjectViewController*addProjectViewController=[[AddProjectViewControlleralloc]initWithStyle:UITableViewStyleGrouped];[addProject

objective-c - 如何使用 UIPopOverController 制作一个在 iPhone 上使用 ImagePicker 的 iPhone 应用程序?

我正在制作一个通用应用程序,它在iPhone上运行良好!但在iPad上,它无法拉起图像选择器。代码是:-(IBAction)openImagePicker:(id)sender//MakesUIImagePickerrollupfromthebottom.{UIActionSheet*alertSheet=[[UIActionSheetalloc]initWithTitle:@"Wheredoyouwanttogetyourdailyimage?"delegate:(self)cancelButtonTitle:@"Cancel"destructiveButtonTitle:nilot

ios - UIPopoverController 在屏幕截图中缺少侧面图像

我正在尝试截取我的界面,但我使用的代码缺少状态栏和UIPopoverController的侧面。我听说可能无法包含状态栏(这是真的吗?)但UIPopoverController的侧面才是我真正关心的。下面是截图代码://Createagraphicscontextwiththetargetsize//OniOS4andlater,useUIGraphicsBeginImageContextWithOptionstotakethescaleintoconsideration//OniOSpriorto4,fallbacktouseUIGraphicsBeginImageContextCG

ios - UIPopoverController 以不同的速度调整 popover 和 content-viewcontroller(uinavigationcontroller) 的大小

所以这是我的问题。我想从导航栏按钮显示一个弹出窗口(工作正常)。popover的contentviewcontroller是一个带有UITableViewController的UINavigationController,因为它是rootviewcontroller。演示效果很好。现在我选择tableview的一个单元格,这导致另一个viewcontroller被推送到导航堆栈上。viewcontroller会被正确推送,但是现在这里出现了一个奇怪的东西。在内容调整大小(有动画)之前,弹出框将开始调整大小(无动画)。这就是我创建弹出窗口并呈现它的方式:UINavigationContr

ios - 当从 UIBarButtonItem 呈现时,如何防止 UIPopoverController passthroughViews 在方向更改后被重置?

我有一个从UIBarButtonItem显示的UIPopoverController。我想要在弹出窗口之外进行触摸以关闭弹出窗口。从条形按钮呈现弹出窗口时,其他条形按钮会自动包含在弹出窗口直通View中。为了防止我在呈现弹出窗口后将直通View设置为nil(或@[]),如下所示:-(IBAction)consoleBarButtonHit:(id)sender{UIViewController*consoleNavigationController=[self.storyboardinstantiateViewControllerWithIdentifier:@"consoleNavi

ios - 旋转时,从 UITableViewCell 显示的 UIPopoverController 放置不正确

我有一个从UITableView中的UITableViewCell显示的弹出窗口,这是模态对话框中的唯一View。这在横向和纵向上都适用:UIViewController*content=[[SetTimeClockTimeViewControlleralloc]init];popover=[[UIPopoverControlleralloc]initWithContentViewController:content];[popoversetDelegate:self];UITableViewCell*cell=[dataTablecellForRowAtIndexPath:[data