¡@

Home 

2014/10/15 ¤U¤È 10:14:18

iphone Programming Glossary: sometype

When to access property with self and when not to?

http://stackoverflow.com/questions/4884231/when-to-access-property-with-self-and-when-not-to

and self.someObject someOtherObject if someObject is a class property created with @property nonatomic retain SomeType someObject To clarify I have something like @interface SomeClass NSObject SomeType someObject @property nonatomic retain.. with @property nonatomic retain SomeType someObject To clarify I have something like @interface SomeClass NSObject SomeType someObject @property nonatomic retain SomeType someObject @end I have noticed I get EXC_BAD ACCESS sometimes when I use.. To clarify I have something like @interface SomeClass NSObject SomeType someObject @property nonatomic retain SomeType someObject @end I have noticed I get EXC_BAD ACCESS sometimes when I use the property without self and it seems quite random...