Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 22nd, 2012  |  syntax: None  |  size: 0.60 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. image gallery using table view
  2. @protocol MyCellDelegate <NSObject>
  3.   - (void)notifyCell:(MyCell *)cell didTouchupInside:(UIButton *)innerButton;
  4.   @end
  5.  
  6.   @interface MyCell : UITableViewCell {
  7.   @private
  8.       // easy to understand button example
  9.       // you can use array or dictionary to manage your buttons.
  10.       UIButton *mButton1;
  11.       UIButton *mButton2;
  12.       UIButton *mButton3;
  13.       UIButton *mButton4;
  14.  
  15.       // Other member variables.
  16.   }
  17.  
  18.   @property (nonatomic, assign) id <MyCellDelegate> delegate;
  19.  
  20.   - (id)initWithReuseIdentifier:(NSString *)reuseIdentifier delegate:(id)delegate;
  21.  
  22.   @end