hey I am getting an error accessing unknown class method 'setFirstName' but I am trying to access the variable which are already synthesized here is the code.
Asked
Active
Viewed 110 times
-2
-
is your property name is firstName ? – Ali3n Jan 15 '12 at 15:08
-
ok when i am trying to add the code ,this showing some error ,what should i do ,and reputation is also below 20 ,so thats why i am unable to add the entire xcode project..... – vrn Jan 16 '12 at 07:26
1 Answers
1
Your error says "unknown class method"! Are you calling the method to a class
or an instance
?

Sailesh
- 25,517
- 4
- 34
- 47
-
-
@Ali3n: um... what? You can have `MyClass.setFirstName("FOO")` when you mean to say `MyClass c = new MyClass(); c.setFirstName("FOO")`. That sounds like a great blind guess what's wrong to me, since we haven't seen any code. – Mu Mind Jan 15 '12 at 18:07
-