Difference between self.variable and variable [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Difference between class property mVar and instance variable self.mVar I am new to developing in Objective-C and I couldn't quite figure out what the difference is between the following: First let me explain my situation. I've got an NSMutableArray , and I created and outlet for it in my .h file. Now when I assign an array to it as self.myMutableArray=myArray I get an error; However just myMutableArray=myArray