【发布时间】:2011-07-19 15:38:10
【问题描述】:
我有一个包含自定义视图界面的故事。这是customeview类定义。
@interface CustomTableCellview : UITableViewCell {
UILabel *titleOfPost;
UILabel *userProfileName;
UIImageView* profileImage;
UILabel *countOfFave;
}
@property(nonatomic,retain) IBOutlet UIImageView *profileImage;
@property(nonatomic,retain) IBOutlet UILabel *titleOfPost;
@property(nonatomic,retain) IBOutlet UILabel *countOfFave;
@property(nonatomic,retain) IBOutlet UILabel *userProfileName;
这些所有值都显示在我的表格中。每当用户单击开/关按钮时,我都想调用一个函数。这是我的 tableview 类定义。
@interface VIPsScreen : UITableViewController {
NSMutableArray* tableList;
IBOutlet CustomVIPCell *tblCell;
NSMutableArray* chengdArray;
}
我想将所有相关的“userProfileName”存储在 UISWitch 值为“ON”的数组“chengdArray”中。我将如何解决这个问题。 提前致谢
【问题讨论】: