Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 将KNSemiModal或MJPOPVIEW与情节提要一起使用_Objective C_Xcode - Fatal编程技术网

Objective c 将KNSemiModal或MJPOPVIEW与情节提要一起使用

Objective c 将KNSemiModal或MJPOPVIEW与情节提要一起使用,objective-c,xcode,Objective C,Xcode,每当我尝试关闭半模式视图时,我就会看到一个崩溃的应用程序。我想我已经正确地设置了Disclose模式视图,但它似乎不起作用。以下是使用XIB文件在演示应用程序中的外观: MJDetailViewController *detailViewController = [[MJDetailViewController alloc] initWithNibName:@"MJDetailViewController" bundle:nil]; [self presentPopupViewContr

每当我尝试关闭半模式视图时,我就会看到一个崩溃的应用程序。我想我已经正确地设置了Disclose模式视图,但它似乎不起作用。以下是使用XIB文件在演示应用程序中的外观:

    MJDetailViewController *detailViewController = [[MJDetailViewController alloc] initWithNibName:@"MJDetailViewController" bundle:nil];
[self presentPopupViewController:detailViewController animationType:MJPopupViewAnimationSlideBottomBottom];
以下是我试图用以下内容取代它:

[self presentPopupViewController:[self.storyboard instantiateViewCOntrollerWithIdentifier:@"example"]  animationType:MJPopupViewAnimationSlideBottomBottom];
[self presentPopupViewController:[self.storyboard instantiateViewCOntrollerWithIdentifier:@"example"]  animationType:MJPopupViewAnimationSlideBottomBottom];
[self.storyboard instanceeviewcontrollerwhidentifier:NSString]
似乎没有正确地将
指令替换为nib
(或任何函数)


知道为什么吗?

我做了类似的事情

我只需要删除MJDetailViewController中的所有init方法,并在identity inspector的'Storyboard ID'属性中添加“example”,然后调用