I have this code:
.h
@interface DetalhesPod : UIViewController { NSString *linhaPod; } @property (nonatomic, strong) NSString *linhaPod; .m
+ (NSArray *)_tracks { NSArray *arrTexto = [self.linhaPod componentsSeparatedByString:@"#"]; } Why I have problem with "+" in "self.linhaPod" ? If I put "-" I don't have problem:
- (NSArray *)_tracks { } Error message: instance variable "linhaPod" accessed in class method...
Thanks
selffrom within a class method. How would the class method know which particular object (instance) to call the instance method on?