【发布时间】:2014-06-06 19:15:49
【问题描述】:
所以我正在使用情节提要和 xib。
我在我的 ViewController 中使用了一个 tableview,它有一个自定义标题作为 xib 文件(VC 是文件所有者)。
我想在标题上滑动时展示我的新 VC,我使用 IB 向 xib 添加了滑动手势,但现在我无法展示它。
当我尝试实例化ViewControllerWithIdentifier 时发生崩溃。我为我提出的 VC 做了一个财产。并设置正确的标识符“swipeRight”。
- (IBAction)swipedRight:(id)sender {
NSLog(@"right");
if (_mpvc == nil) { //user those if only so the use wont push it twice and more
_mpvc = [self.storyboard instantiateViewControllerWithIdentifier:@"swipeRight"];
}
[self presentViewController:_mpvc animated:YES completion:nil];
}
错误:
Cannot find executable for CFBundle 0x9022120 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/GeoServices.axbundle> (not loaded)
【问题讨论】:
标签: ios storyboard xib nib