I don’t understand why this doesn’t work:
[abc = ([def intValue] - 71) * 6];
‘*’ should be the viable way of doing multiplication and ‘abc’ is defined as an NSInteger. (‘def’ is an NSString)
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.
Use e.g. the following instead:
Not everything in Objective-C is of class-type, e.g.:
NSIntegerNSUIntegerNSPointI also don’t know where you got that idea of doing the assignment inside the square brackets in the first place – i strongly recommend to read through the Introduction to The Objective-C Programming Language.