(MemberPage *)initWithString: (NSString *) s {
self = [super init];
if ( self ) {
//DO STUFF;
UserNAME.text = s;
}
}
return self;
I’m getting:
use of undeclared identifier initWithString
expected ; before : token
I’ve haven’t been able to fix this after an hour so far,
Thanks
You are missing the
-token before your method signature and the return statement is outside the method body. Should look like:You may also eventually have a problem on the
UserNAME.text = sline but without seeing your header file its hard to tell.