Selector. Call Back.


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. ------ClassName.h-------------------
  2.  
  3. @interface ClassName : NSObject {
  4. id delegate;
  5. }
  6.  
  7. @property(nonatomic, assign) id delegate;
  8.  
  9.  
  10. @end
  11.  
  12. ------ClassName.m-------------------
  13.  
  14. @synthesize delegate;
  15.  
  16. if ([delegate respondsToSelector:@selector(subscriptionSelected:)])
  17. [delegate performSelector:@selector(subscriptionSelected:) withObject:(id)indexPath.row ];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.