下面的代碼對我來說並不合適。每當該方法被稱爲應用程序崩潰我做錯了什麼?在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