下面的代码对我来说并不合适。每当该方法被称为应用程序崩溃我做错了什么?在UIViewController之间切换 - presentViewController
此代码使用故事板格式
在.h文件
@class SendVideoViewController;
...
@property (nonatomic) SendVideoViewController *sendVideoViewController;
在.m文件
#import "SendVideoViewController.h"
...
@synthesize sendVideoViewController;
...
- (IBAction)signMeUpButtonPressed:(id)sender {
termsAndConditionsViewController = [[TermsAndConditionsViewController alloc] init];
[self presentViewController:termsAndConditionsViewController animated:YES completion:nil];
//[self.view insertSubview:termsAndConditionsViewController.view atIndex:0];
}
如果我可以从这个网站得到一些固体的反馈只是一次就好。如果您发布答案,请回复该答案的评论。我不喜欢被告知只写什么,我也想知道这意味着什么 – nfoggia