i get this error “expected identifier before ‘OBJC_STRING’ token” on this line of code:
- (id)initWithNibName:(NSString *)@"Landscape.xib" bundle:(NSBundle *)mainBundle {
and im not sure why, can anyone help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In method declaration you can’t use string literals for parameter name. Declare it
and pass
@"Landscape.xib"as parameter when call that methodP.S. not sure if that’s relevant to your question or not, but just in case – objective-c does not support default values for function parameters.