对tableview的cell的操作 IOStableviewtableviewcell 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼主你好,在tableview的代理方法中,有设置行高的函数,你可以调用行数,然后做相应操作。 在uitableview的代理方法中有可以自定义设置的方法static const NSInteger FirstRowHeight = 60;static const NSInteger LastRowHeight = 40;static const NSInteger MiddleRowHeight = 50;-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *) indexPath { if (indexPath.row == 0) { return FirstRowHeight; }else if (indexPath.row == [youdata count]-1) { return LastRowHeight; } return MiddleRowHeight;} Nsstring转换成ascii码问题 我的interface builder里为什么没有库 给童鞋们散散分 教个问题!关于多个label的显示问题(也可以说是动画效果?) html文件解析 ios map给一个经纬度的数组怎么能在连线后自动判断该缩放多少把线显示在最中间呢? xcode 6 真机测试 NSS tring数据是以ios-8859-1格式编码,求解码 swift 2.0 json中文乱码怎么处理 请问有会用 githup 的吗? AFN框架上传录音文件。 如何学好ios
static const NSInteger FirstRowHeight = 60;
static const NSInteger LastRowHeight = 40;
static const NSInteger MiddleRowHeight = 50;
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *) indexPath {
if (indexPath.row == 0) {
return FirstRowHeight;
}else if (indexPath.row == [youdata count]-1) {
return LastRowHeight;
} return MiddleRowHeight;
}