对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;} 苹果开发C语言? 谁能发一下IOS从开发注册到运营的全流程 fileManager为啥删除不了文件,也不能覆盖 关于数据持久性的问题 请教文本框设置焦点和边框闪烁如何做 IOS LocalAuthentication objectC中 手一对getter方法与setter方法 算不算属性 UITabBarController启动后只能显示一个标签 h5页如何封装成可以上加的app iOS 删除系统相册图片 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;
}