Here is my code.
@interface MasterViewController : UIViewController{
}
-(void) initCallService;
@end
@implementation MasterViewController
-(void) initCallService{
}
@end
other class which is sub class of above
@interface DetailViewController : MasterViewController{
IBOutlet UIButton *btn;
}
@end
@implementation DetailViewController
-(void) btntitle_changed{
[btn setTitle:[self.arr objectAtIndex:recordIndex] forState:UIControlStateNormal];
}
@end
I need whenever the title changes in btntitle_changed
method of DetailViewController
class to send it to MasterViewController
's initCallService
method. I don't know how can i achieve this with the class hierarchy. Can anyone guide me for this ? Valid answer will be appreciated.