Tôi có 2 lớp kế thừa UITableViewControllers. Và hai khung nhìn bảng này nên sử dụng cùng một UITableViewCell tùy chỉnh. Vậy làm thế nào tôi có thể sử dụng Custom UITableViewCell từ một tệp Nib trong hai lớp khác nhau? Chủ sở hữu của xib chỉ có thể là 1 lớp.iPhone: Cách sử dụng UITableViewCell trong hai chế độ xem bảng
@interface Class1 : UITableViewController<UITableViewDataSource,
UITableViewDelegate> {
UITableViewCell *myCustomTableRow;
}
@property (nonatomic, retain) IBOutlet UITableViewCell *myCustomTableRow;
@interface Class2 : UITableViewController<UITableViewDataSource,
UITableViewDelegate> {
UITableViewCell *myCustomTableRow;
}
@property (nonatomic, retain) IBOutlet UITableViewCell *myCustomTableRow;
Đúng, ý tưởng hay..Thanks – Jim