iPhone app - Terminating DUE TO UNCAUGHT EXCEPTION

Posted by Kenneth on Stack Overflow See other posts from Stack Overflow or by Kenneth
Published on 2010-05-31T09:50:22Z Indexed on 2010/05/31 9:52 UTC
Read the original article Hit count: 230

Filed under:
|

Hi Guys, im trying to switch views between view controllers but it crashed. so basically im switching from mainScreen to test i get an error in the Debugger

0x01d6a000 <+0000> push %ebp 0x01d6a001 <+0001> mov %esp,%ebp 0x01d6a003 <+0003> int3
0x01d6a004 <+0004> leave (HIGHLIGHTED) 0x01d6a005 <+0005> ret
0x01d6a006 <+0006> nopw %cs:0x0(%eax,%eax,1)

mainscreen.h

import

@interface MainScreen : UIViewController {

}

-(IBAction)btnFirstPage:(id)sender;

@end

mainscreen.m

import "MainScreen.h"

import "test.h"

@implementation MainScreen

-(IBAction)btnFirstPage:(id)sender{

test1 = [[test1 alloc]

initWithNibName:@"test"  (test may not respond to -alloc)

bundle:nil];

[self.view addSubview:test1.view];

.................etc

test.h

import

@interface test : UIViewController { }

@end

test.m etc (did not edit)

© Stack Overflow or respective owner

Related posts about c

    Related posts about objective