tableview怎么关联uitableviewcell的xib

2025-05-07 03:29:45
推荐回答(1个)
回答1:

三、代码示例
1.没有使用配套的类,而是直接使用xib文件控件tag值操作
数据模型部分:
YYtg.h文件

1 //
2 // YYtg.h
3 // 01-团购数据显示(没有配套的类)
4 //
5 // Created by apple on 14-5-29.
6 // Copyright (c) 2014年 itcase. All rights reserved.
7 //
8
9 #import
10 #import "Global.h"
11
12 @interface YYtg : NSObject
13 @property(nonatomic,copy)NSString *buyCount;
14 @property(nonatomic,copy)NSString *icon;
15 @property(nonatomic,copy)NSString *price;
16 @property(nonatomic,copy)NSString *title;
17 YYinitH(tg)
18 @end