saad
|
|
« Reply #2 on: January 10, 2011, 04:43:59 » |
|
Hi:
I worked it out using following strategy,
@implementation CigaretteMediator
+ (NSString *)NAME { return @"CigaretteMediator"; }
- (void)initializeMediator { self.mediatorName = [[CigaretteMediator NAME] stringByAppendingString:[viewComponent name]]; }
in my view component had to create a function and property ([viewComponent name]), for setting and retrieving a unique name, though I was looking for a built-in property such as what Cliff suggest like id something, is there something like that we can set and get a built-in property programmatically for each UIViewController
|