사용자 지정 셀에 대리자 메서드를 설정했습니다.사용자 정의 셀에서 직접 viewcontroller에서 대리자 메서드를 실행하십시오.
--- 내 세포의 어딘가에 기능 이상 호출 나는의 ViewController에서 사용자 정의 셀의 변화에 대해 듣고 싶은 -의 말
@protocol CheckDelegate <NSObject>
@required
- (void)checkForUpdate;
@end
@property (nonatomic, weak) id<CheckDelegate> delegateForChecker;
을 할 수 있습니다. 어떻게 tableviewcontroller 사용하지 않고 Viewcontroller 대리자를 사용하여 구현할 수 있습니다.
일에 대한 생각의 ViewController I에서,
-(void) viewDidLoad{
CustomCell * cll = [[Customcell alloc]init]
cll.delegateForChecker = self;
}
-(void) checkDelegate{
NSLog(@"Something changed");
}
P.S. 나는 NSNotification을 사용하고 싶지 않다.