views:

308

answers:

3
A: 

Have you added Connection.m into your project?

KennyTM
Hello, yes i add Connection.m and connection.h into my project.
Alexander
A: 

Don't you get a warning that Connection is undefined or may not respond to selector when compiling?

Adam Woś
Hello. The app crashes after execution following line: if ([Connection isConnected]).If I debug the return value like: NSLog(@"%@",[Connection isConnected]) i get the right "YES" return value.But i don't know why the app crashes.
Alexander
A: 

What does your call to this class method look like? We need to see your code to figure out what is going wrong.

Duncan C
Here is my function call:AppDelegate.m:----------------------- (void)applicationDidFinishLaunching:(UIApplication *)application { NSLog(@"%@",[Connection isConnected]);}My Error:--------------------------------------------------------2010-01-12 08:43:28.375 iGeiz[400:207] *** +[Connection isConnected]: unrecognized selector sent to class 0x3bcd5002010-01-12 08:43:28.377 iGeiz[400:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[Connection isConnected]: unrecognized selector sent to class 0x3bcd500'........
Alexander