大佬教程收集整理的这篇文章主要介绍了ios – UITableViewCell imageView填充,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
这是我的cellForRow方法
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowATindexPath:(NSIndexPath *)indexPath { static NSString *cellID = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reusEIDentifier:cellID] autorelease]; cell.textLabel.numberOfLines = 1; cell.textLabel.font = [UIFont systemFontOfSize:kSystemFontSize]; cell.accessoryType = UITableViewCellAccessoryNone; cell.textLabel.textColor = [UIColor whiteColor]; } cell.textLabel.text = [_dataArray objectATindex:indexPath.row]; cell.imageView.image = [UIImage imagenamed:[_imageArray objectATindex:indexPath.row]]; cell.BACkgroundColor = [UIColor clearColor]; return cell; }
目前我只知道一种方法,我可以做到这一点 – 使用photoshop或类似的程序缩小图像的图像内容,同时保持.但是这种方法需要花费很多时间,我想应该有更简单的方法来做到这一点.
以上是大佬教程为你收集整理的ios – UITableViewCell imageView填充全部内容,希望文章能够帮你解决ios – UITableViewCell imageView填充所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。