草庐IT

push-segue

全部标签

ios - 在 UISplitViewController 中,无法使 showDetailViewController :sender: push onto detail navigationController

在iOS8中,ViewController现在可以调用showDetailViewController:sender:让系统确定正确的ViewController来呈现细节ViewController。在我的应用程序中,我有一个UISplitViewController,它在其viewControllers数组中包含两个UINavigationControllers。第一个UINavigationController包含我的“主”View,它是UITableViewController的子类。第二个UINavigationController包含我的“详细信息”View。由于我试图使这

ios - segue 在简单的 segue 测试中不起作用

我有一个奇怪的问题。我在Storyboard中创建了2个ViewController:testSegueViewcontroller和nextPageViewController。testSegueViewcontroller包含一个UIButtonNextPage。我按住Ctrl从这个按钮拖动到nextPageViewController并创建了一个Pushsegue。问题是当我运行这个程序并点击testSegueViewcontroller中的NextButton时它没有显示nextPageVieController:-(对我做错了什么有什么想法吗? 最

ios - APNs Distribution iOS 和 Apple Push Services 有什么区别?

如图所示,当我想创建ProductionSSLCertificate时,正常的类型应该是[APNsDistributioniOS],但是我创建的Certificate是[ApplePushServices],这是怎么回事? 最佳答案 “AppleDevelopmentiOSPushServices”和“AppleProductioniOSPushServices”是证书的旧名称,当您需要为两个环境分别使用证书时。现在,对于新的HTTP/2API,您只需要一个证书,因此他们将证书的名称更改为更通用的名称-“ApplePushServi

ios - 为什么 'present as popover' segue 覆盖了整个屏幕?

在我的项目中,我在屏幕的右下角有一个按钮,我在Storyboard中添加了另一个uiviewcontroller,按住control并拖动到我想要作为弹出窗口的uiviewcontroller,然后将该viewcontroller大小设置为(300,300)并选中“使用首选显式大小”。当我加载应用程序并单击按钮时,整个屏幕都被“弹出窗口”覆盖。我还尝试进入popoverViewController的.m文件并设置大小,但这也没有用。有什么想法吗?编辑:因为看起来我必须让它全屏显示,这很好,但是我仍然遇到了我之前遇到的一些其他问题。我的弹出屏幕将出现,我将背景设置为黑色和alpha为0.

ios - Segues 直接从 Storyboard xcode 中的 View Controller 警告启动

您好,我已经以编程方式创建了按钮,并将它连接到另一个View,但是我收到了segue警告我应该为Storyboard使用prepareForSegue方法,但我不知道怎么做,网上有一些示例,但我在使用该示例时遇到错误,请你帮帮我好吗这是我的代码创建按钮UIButton*button=[UIButtonbuttonWithType:UIButtonTypeCustom];button.backgroundColor=[UIColorcolorWithRed:201.0/255.0green:201.0/255.0blue:201.0/255.0alpha:1.0];button.tag=

ios - 无法连接 Storyboard Unwind Segue

我正在尝试创建一个展开的segue,但是当ctrl+拖动时没有任何连接到它。此外,当我右键单击“退出”图标时,没有可用的选项。有什么想法吗? 最佳答案 您需要在接受“UIStoryboardSegue*”类型参数的ViewController上定义一个IBAction。像这样:@interfaceMyViewController...-(IBAction)unwindFromConfirmationForm:(UIStoryboardSegue*)segue{}...@endSwift3版本@IBActionfuncunwindTo

ios - iPhone : Push Notification Testing on Production Certificate

我有一个简短的问题。我一直在为我的iPhone应用程序测试开发推送通知证书,它运行良好。我只想知道在将我的应用程序提交到AppStore之前是否可以测试生产证书?我确实尝试过,但是当我使用生产证书时没有出现消息。使用productioncertificate时,Apple是否要求在AppStore上申请?谢谢。 最佳答案 如果您创建一个临时配置文件,您会发现它使用生产证书,这可能是测试它的最简单方法。更新:参见theAppledocumentationhere这有很多步骤,但本质上是这样;1)团队负责人需要创建一个新的DISTRIB

ios - UISearchController 在 segue 之后持续存在

我有一个带有UISearchController的应用程序。UI的这个元素完全用如下代码设置:searchController=UISearchController(searchResultsController:nil)searchController.searchResultsUpdater=selfsearchController.searchBar.delegate=selfsearchController.dimsBackgroundDuringPresentation=falsesearchController.hidesNavigationBarDuringPresent

ios - 仅当添加第三个 segue 时才在 didSelectRowAtIndexPath 之前调用 prepareForSegue

我有3个segues到3个不同的View。2实现没有问题,但在创建第三个时出现问题。我有以下didSelectRowAtIndexPath方法:-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)indexPath{NSLog(@"----------didselectrow");if(indexPath.section==0){if(indexPath.row==[self.datacount]-1){//priortoaddingthis,everythingworks[self

ios - 在 popover segues 中 Anchor 和 Passthrough 有什么用?

在Xcode中,Popoversegue有两个连接字段,名为Anchor和Passthrough。它们的用途是什么? 最佳答案 这些是UIPopoverController的属性,而不是segue。这就是为什么如果您查看UIStoryboardPopoverSegue的文档,您将找不到这两个属性。anchor告诉UIPopoverController它的箭头指向哪里。passthrough是一组View,用户可以在显示UIPopoverController时与之交互。文档在这里:https://developer.apple.com