iphone Programming Glossary: artistfeeds
Setting dynamic height for UITableViewCell with only image (variable height) inside it http://stackoverflow.com/questions/11189351/setting-dynamic-height-for-uitableviewcell-with-only-image-variable-height-ins sometimes get overlapped.Heres the code... NSInteger numberOfSectionsInTableView UITableView tableView return artistfeeds count NSInteger tableView UITableView tableView numberOfRowsInSection NSInteger section return 1 UITableViewCell tableView.. @ artistFeedCell UIImageView imgView UIImageView alloc initWithImage ESArtistFeedObject artistfeeds objectAtIndex indexPath.section .image cell.contentView addSubview imgView cell.contentView sizeToFit return cell CGFloat.. tableView UITableView tableView heightForRowAtIndexPath NSIndexPath indexPath CGFloat height ESArtistFeedObject artistfeeds objectAtIndex indexPath.section .image.size.height NSLog @ section i image height f indexPath.section height return height..
|