开发者

SIGABRT error during interface change

开发者 https://www.devze.com 2023-03-12 23:12 出处:网络
(IBAction)switchAppointment { AppointmentController *appt = [[AppointmentController alloc] initWithNibName:nil bundle:nil];
(IBAction)switchAppointment {

    AppointmentController *appt = [[AppointmentController alloc] initWithNibName:nil bundle:nil];

    appt.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;

    [self presentModalViewController:appt animated:YES];

    [appt release];
} 

That is the code that I use to switch from one .xib 开发者_如何学Pythonto another, however on the line that says "self presentModalViewController:appt animated:YES" , I'm getting a SIGABRT error. My app crashes immediately when I try to go into that interface.

FYI too I'm on Xcode 4.2, but it was doing this before I downloaded the beta.


I have also same answer for the code:

 nextView *second=[[nextView alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:second animated:YES];      
[second release];

Yours

Miska

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号