草庐IT

segueing

全部标签

ios - 当主视图 Controller 是 UITabBarController 时,自适应显示细节 segue 转换为模态而不是在 iPhone 上推送

在XCode6中,如果您基于主从应用程序模板创建一个新项目,您将获得一个应该适用于所有设备的通用Storyboard。在主视图中选择一个单元格时,详细View会通过自适应“显示详细信息”转场进行更新。在纵向的iPhone4、5、6或6+上,此segue将按预期采用推送的形式。在横向的iPad或iPhone6+上,它会导致详细View按预期更新。现在,如果您插入一个UITabBarController作为主视图Controller,它有一个到原始主视图Controller的选项卡,当在主视图中选择一个单元格时发生的自适应转场在iPhone上不会像预期的那样运行。您现在获得的不是推送转换,

ios - 自定义 Push Segue 移除 Storyboard中的导航栏和标签栏

我在自定义Segue中定义了以下内容,我们称它为SegueX:@interfaceSegueX:UIStoryboardSegue@end@implementationSegueX-(void)perform{CATransition*transition=[CATransitionanimation];transition.duration=0.3;transition.type=kCATransitionFade;[[self.sourceViewControllernavigationController].view.layeraddAnimation:transitionfor

ios - 自定义 Push Segue 移除 Storyboard中的导航栏和标签栏

我在自定义Segue中定义了以下内容,我们称它为SegueX:@interfaceSegueX:UIStoryboardSegue@end@implementationSegueX-(void)perform{CATransition*transition=[CATransitionanimation];transition.duration=0.3;transition.type=kCATransitionFade;[[self.sourceViewControllernavigationController].view.layeraddAnimation:transitionfor

ios - indexpath 行未准备好 segue 以进行详细信息披露

if([segue.identifierisEqualToString:@"Edit"]){AddCoffeeViewController*avc=[seguedestinationViewController];Coffee*coffeeObj=[appDelegate.coffeeArrayobjectAtIndex:arow];NSLog(@"ViewController.mprepareForSegue:arow:%dcoffeeName:%@price:%@coffeeID:%d",arow,coffeeObj.coffeeName,coffeeObj.price,coffe

ios - indexpath 行未准备好 segue 以进行详细信息披露

if([segue.identifierisEqualToString:@"Edit"]){AddCoffeeViewController*avc=[seguedestinationViewController];Coffee*coffeeObj=[appDelegate.coffeeArrayobjectAtIndex:arow];NSLog(@"ViewController.mprepareForSegue:arow:%dcoffeeName:%@price:%@coffeeID:%d",arow,coffeeObj.coffeeName,coffeeObj.price,coffe

ios - 展开 segue 不起作用

我添加了一个操作方法来查看Controller,然后按住Ctrl键将按钮拖动到Storyboard中的退出图标,并且成功创建了unwindsegue。但是当我触摸按钮时,unwindsegue不起作用(当前场景不会导航到原始场景)并且不会触发操作方法。我不知道为什么。这是Action方法@interfaceHMCViewController2:UIViewController-(IBAction)return:(UIStoryboardSegue*)segue;@end@implementationHMCViewController2...-(IBAction)return:(UISt

ios - 展开 segue 不起作用

我添加了一个操作方法来查看Controller,然后按住Ctrl键将按钮拖动到Storyboard中的退出图标,并且成功创建了unwindsegue。但是当我触摸按钮时,unwindsegue不起作用(当前场景不会导航到原始场景)并且不会触发操作方法。我不知道为什么。这是Action方法@interfaceHMCViewController2:UIViewController-(IBAction)return:(UIStoryboardSegue*)segue;@end@implementationHMCViewController2...-(IBAction)return:(UISt

ios - 使用 segues 在 NavigationController 中嵌入 UIViewController

我有一个viewController,它通常(最经常)通过使用推送segue访问。这个viewController需要嵌入到UINavigationController中。所以通常情况下,这没有问题。pushsegue管理推送viewController,因此viewController拥有它的UINavigationController。我的问题是,在某些情况下,我想使用模态转场来呈现完全相同的viewController。当我这样做时,viewController没有嵌入到navigationController中。有没有办法使用segues来做到这一点?我知道这可以通过创建一个U

ios - 使用 segues 在 NavigationController 中嵌入 UIViewController

我有一个viewController,它通常(最经常)通过使用推送segue访问。这个viewController需要嵌入到UINavigationController中。所以通常情况下,这没有问题。pushsegue管理推送viewController,因此viewController拥有它的UINavigationController。我的问题是,在某些情况下,我想使用模态转场来呈现完全相同的viewController。当我这样做时,viewController没有嵌入到navigationController中。有没有办法使用segues来做到这一点?我知道这可以通过创建一个U

iphone - 附件 Action segue (UITableViewController)

我正在尝试通过IB进行segue,即在tableView中按下单元格附件时切换View。来self的IB的图片:1.我从tableviewcontroller的单元格拖到另一个View并选择AccessoryAction->push当我运行我的项目时出现错误:[setValue:forUndefinedKey:]:thisclassisnotkeyvaluecoding-compliantforthekeyaccessoryActionSegueTemplate我认为这可能是cell的reuseIdentifier有问题。我的cellForRowAtIndexPath:方法:stati