-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRowCell.h
More file actions
42 lines (31 loc) · 1.5 KB
/
Copy pathRowCell.h
File metadata and controls
42 lines (31 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// RowCell.h
// GridAlbum
//
// Created by Yufei Lang on 12-5-7.
// Copyright (c) 2012年 UB. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol RowCell;
@interface RowCell : UITableViewCell
@property (weak, nonatomic) id<RowCell> delegate;
@property (strong, nonatomic) NSIndexPath *cellIndexPath;
@property (weak, nonatomic) IBOutlet UIButton *btn0;
@property (weak, nonatomic) IBOutlet UIButton *btn1;
@property (weak, nonatomic) IBOutlet UIButton *btn2;
@property (weak, nonatomic) IBOutlet UIButton *btn3;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indicator0;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indicator1;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indicator2;
@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indicator3;
// when creating or setting this cell, also tell this cell what's its index path in table view
- (void)setCellForIndexPath: (NSIndexPath *)index;
// start download with a url with index in GridTableViewController's arrayImage
// which button(image), there are four images in one cell
- (void)executeDownloadWithURL: (NSString *)strURL ForOverAllIndex: (NSInteger)iIndexOverAll ForWhichButtonInCell: (NSInteger)iWhichButton;
@end
@protocol RowCell <NSObject>
- (void)btnClickedForImageIndex: (NSInteger)index;
- (void)finishedDownloadingImage: (UIImage *)img ForOverAllIndex: (NSInteger)iIndexOverAll
ForWhichButtonInCell: (NSInteger)iWhichButton AtTableViewIndex: (NSIndexPath *)indexPath;
@end