modalviewcontroller

    2热度

    1回答

    我有一个嵌入在UINavigationController中的UIViewController sublcass(VC1)。 VC1触发模式继承到另一个UIViewController子类(VC2),该子类嵌入在它自己的,不同的UINavigationController中。内部由VC2的导航栏中的UIBarButtonItem触发的操作方法,我称之为 [self performSegueWith

    2热度

    1回答

    我有一个弹出窗口,里面有TabBarController。在一个选项卡中有一个带有名称列表的TableViewController。还有一个加号按钮,它具有添加新名称的AddCharacterVC模式。 在iOS的7我不喜欢这样写道: AddCharacterViewController *acvc = (AddCharacterViewController *)segue.destination

    0热度

    1回答

    我想呈现一个模式视图控制器。在iOS7中,一切运行良好,但在iOS8中,视图控制器的框架已更改。我读了一些答案,其中一个解决方案是设置preferredContentSize和modalPresentationStyle = UIModalPresentationFormSheet。 但我需要我的modalPresentationStyle = UIModalPresentationCustom,

    0热度

    1回答

    我有我提出模态使用下面的代码一个UIViewController一个模式的距离: FeedbackViewController *fvc=[[FeedbackViewController alloc] init]; fvc.delegate=self; [fvc setModalPresentationStyle:UIModalPresentationFormSheet]; [self pr

    0热度

    1回答

    我升级旧代码最新iOS8上,我看到很多这样的: if (controller.modalViewController && controller.modalViewController.parentViewController == controller) if(tabcontroller.modalViewController) .... 我看到大量的文件如何呈现modalVi

    11热度

    1回答

    在iOS 8+中,我注意到如果在视图控制器中显示的文本字段当前为firstResponder,当视图控制器被解除时,键盘会挂起约1秒后才被解雇。 这发生在iOS 8.0和8.1和而不是 7.1。 任何想法为什么这样?

    0热度

    1回答

    我试图在另一个模态视图上呈现透明模态视图。我正在使用故事板。 我已经加入这个我的第一模态的视图: self.modalPresentationStyle = UIModalPresentationCurrentContext; [self performSegueWithIdentifier:@"sendUserMessage" sender:self]; 而这对我的第二模态的视图(一个我

    21热度

    4回答

    我有一个基于标签栏的应用程序。在所有5个选项卡中都有导航控制器,并将自定义视图控制器实例设置为根视图控制器。这加载得很好。这些视图控制器中的一些包含表视图。我想在表格视图中选择一行时向用户显示模式视图控制器。该didSelectRowAtIndexPath方法委托方法(的相关部分)如下所示: SampleSelectorViewController *sampleVC = [[SampleSele

    7热度

    3回答

    这是我的视图(控制器)的层次结构: UITabBarController(作为应用的rootViewController) UINavigationController(作为viewController为tabBar选项卡之一) UIViewController(作为对UINavigationController) UICollectionView的rootViewController(作为一个子

    0热度

    1回答

    我在使用附加的长按手势来获取使用以下代码的模式视图时收到此错误: // Long press to go to settings for one - (void)longPressOne:(UILongPressGestureRecognizer*)gesture { [self performSegueWithIdentifier:@"buttonOne" sender:self]