I have a table view with more than ten cells in row, it is not easy to set data as below
Can I use as below?
Code:
// CustomCell.h
#import <UIKit/UIKit.h>
@interface CustomCell : UITableViewCell {
UILabel *labelStartDate;
UILabel *labelEndDate;
UILabel *labelTradeType;
UILabel *labelAccount;
UILabel *labelCode;
UILabel *labelName;
UILabel *labelAmount;
UILabel *labelStartPrice;
UILabel *labelEndPrice;
UILabel *labelValue;
UILabel *labelProfitLoss;
UILabel *labelProfitLossRate;
}
@property (nonatomic, retain) IBOutlet UILabel *labelStartDate;
@property (nonatomic, retain) IBOutlet UILabel *labelEndDate;
@property (nonatomic, retain) IBOutlet UILabel *labelTradeType;
@property (nonatomic, retain) IBOutlet UILabel *labelAccount;
@property (nonatomic, retain) IBOutlet UILabel *labelCode;
@property (nonatomic, retain) IBOutlet UILabel *labelName;
@property (nonatomic, retain) IBOutlet UILabel *labelAmount;
@property (nonatomic, retain) IBOutlet UILabel *labelStartPrice;
@property (nonatomic, retain) IBOutlet UILabel *labelEndPrice;
@property (nonatomic, retain) IBOutlet UILabel *labelValue;
@property (nonatomic, retain) IBOutlet UILabel *labelProfitLoss;
@property (nonatomic, retain) IBOutlet UILabel *labelProfitLossRate;
@end
Can I use as below?
Code:
// CustomCell.h
#import <UIKit/UIKit.h>
@interface CustomCell : UITableViewCell {
UILabel *label[10];
}
@property (nonatomic, retain) IBOutlet UILabel *label[10];
@end