
Untitled
By: a guest on
Jun 22nd, 2012 | syntax:
None | size: 0.60 KB | hits: 10 | expires: Never
image gallery using table view
@protocol MyCellDelegate <NSObject>
- (void)notifyCell:(MyCell *)cell didTouchupInside:(UIButton *)innerButton;
@end
@interface MyCell : UITableViewCell {
@private
// easy to understand button example
// you can use array or dictionary to manage your buttons.
UIButton *mButton1;
UIButton *mButton2;
UIButton *mButton3;
UIButton *mButton4;
// Other member variables.
}
@property (nonatomic, assign) id <MyCellDelegate> delegate;
- (id)initWithReuseIdentifier:(NSString *)reuseIdentifier delegate:(id)delegate;
@end