ios uitableviewcell
来源:互联网 发布:曹琴默 知乎 编辑:程序博客网 时间:2024/05/20 00:52
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *identifier =@"ChongZhiViewCell";
ChongZhiViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
if (cell == nil) {
cell = [[ChongZhiViewCellalloc] initWithStyle:(UITableViewCellStyleSubtitle)reuseIdentifier:identifier];
}
if (indexPath.row ==0) {
self.imgV = [[UIImageViewalloc] initWithFrame:CGRectMake(8,8, 40, 40)];
self.imgV.backgroundColor = [UIColormyColorWithString:@"1E90FF"];
[self.viewaddSubview:self.imgV];
self.titleLB = [[UILabelalloc] initWithFrame:CGRectMake(60,12, 300, 40)];
self.titleLB.backgroundColor = [UIColorwhiteColor];
self.titleLB.font = [UIFontsystemFontOfSize:15];
self.titleLB.text =_titleString;
[self.viewaddSubview:self.titleLB];
}
if (indexPath.row ==1) {
cell.titleLB.text =@"缴费:";
}if (indexPath.row ==2) {
cell.titleLB.text =@"户号:";
}
UIButton *button = [UIButtonbuttonWithType:(UIButtonTypeCustom)];
button.frame = CGRectMake(40, 300, 300, 40);
[button.layer setCornerRadius:10.0];
button.backgroundColor = [UIColormyColorWithString:@"1E90FF"];
[button setTitle:@"确定"forState:(UIControlStateNormal)];
[self.viewaddSubview:button];
return cell;
}
- iOS- UITableViewCell
- ios uitableviewcell
- iOS开发:自定义UITableViewCell
- iOS开发:自定义UITableViewCell
- IOS UITableViewCell的使用
- IOS自定义UITableViewCell
- IOS 自定义UITableViewCell
- iOS UITableViewCell重用问题
- iOS - UITableViewCell自适应高度
- ios 设置UITableViewcell透明
- iOS UITableViewCell重用问题
- IOS自定义UITableViewCell
- ios--UITableViewCell 使用方法详解
- IOS--UITableView,UITableViewCell介绍
- iOS UITableViewCell重用问题
- iOS UITableViewCell AccessoryType属性
- iOS UITableViewCell重用问题
- iOS UITableViewCell重用问题
- 【牛腩新闻发布系统】写SQlHelper
- Javase之字符串
- 简单的等式
- Linux_Shell初级编程入门
- linux socket c : send data when socket close—SIGPIPE, Broken pipe
- ios uitableviewcell
- //使用顺序表实现循环队列的入队和出队
- Ubuntu下配置tftp服务
- FireMonkey的TreeView控件的一个bug
- tar.xz解压缩
- Linux中使用SecureCRT上传、下载文件命令sz与rz用法实例
- UIWebView 加载网页数据(网页,网页片段,本地文件)
- POJ 1061-青蛙的约会(拓展欧几里得)
- C++智能指针与返回局部指针测试