但搜索被取消后我得到了错误的数据(标签应该是ph:+和传真:+但它显示为传真:+像这样
使用此代码
@interface StaffDirectoryModel : NSObject
@property (nonatomic,retain) NSString*name;
@property (nonatomic,retain) NSString*occupation;
@property (nonatomic,retain) NSString*phlabel;
@property (nonatomic,retain) NSString*phonelabel;
@property (nonatomic,retain) NSString*fxlabel;
@property (nonatomic,retain) NSString*faxlabel;
@property (nonatomic,retain) NSString*department;
和 staffdirectory模型类
@interface Staffcustom : UITableViewCell
@property (strong, nonatomic) IBOutlet UILabel *fxlabel;
@property (weak, nonatomic) IBOutlet UILabel *namelabel;
@property (weak, nonatomic) IBOutlet UILabel *occupationlabel;
@property (weak, nonatomic) IBOutlet UILabel *phlabel;
@property (weak, nonatomic) IBOutlet UILabel *faxlabel;
@property (weak, nonatomic) IBOutlet UILabel *phonelabel;
@property (weak, nonatomic) IBOutlet UILabel *faxnumlabel;
@property (nonatomic,retain) IBOutlet UILabel *Depart;
@end
staffcustom.h
Person teacher = new Teacher();