Re: iPhone: UITableView with cells of varying heights

2010-01-15 Thread Brian Bruinewoud
Be sure to still have a maximum height for each row. Some RSS feeds (eg. BetaNews.com) contain the entire article rather than just text. Also, some feeds contain images (eg. Online comics and the entire cheese burger network stuff). On 15/01/2010, at 05:16 , Eric E. Dolecki wrote: > Sure thin

Re: UITableView with cells of varying heights

2010-01-14 Thread Matt Neuburg
On Thu, 14 Jan 2010 09:46:06 -0500, "Eric E. Dolecki" said: >The result would be a UITableView with rows of varying >heights, perfectly framing each row's content. This is certainly possible, since I did in my TidBITS News app (free, so you can take a look at the result). Basically I'm simply cal

Re: iPhone: UITableView with cells of varying heights

2010-01-14 Thread Eric E. Dolecki
Sure thing: http://www.cimgf.com/2009/09/23/uitableviewcell-dynamic-height/ On Thu, Jan 14, 2010 at 1:06 PM, Jack Carbaugh wrote: > Could you share the tutorial with the group please .. that way if someone > else searches and finds this thread, they can continue to the tutorial. > > thanks! > ja

Re: iPhone: UITableView with cells of varying heights

2010-01-14 Thread Eric E. Dolecki
I found a tutorial online just after I emailed this list. Thanks for the links! Eric On Thu, Jan 14, 2010 at 9:57 AM, Luke the Hiesterman wrote: > Hmm, those were supposed to be links at the end of the lines. > > > http://developer.apple.com/iphone/library/documentation/UIKit/Reference/NSString_

Re: iPhone: UITableView with cells of varying heights

2010-01-14 Thread Luke the Hiesterman
Hmm, those were supposed to be links at the end of the lines. http://developer.apple.com/iphone/library/documentation/UIKit/Reference/NSString_UIKit_Additions/Reference/Reference.html#//apple_ref/doc/uid/TP40006893-CH3-SW7 http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UI

Re: iPhone: UITableView with cells of varying heights

2010-01-14 Thread Luke the Hiesterman
Calculate label height with [NSString sizeWithFont:ForWidth:LineBreakMode:]. sizeWithFont:forWidth:lineBreakMode: Assign cell row heights with [UITableViewDelegate tableView:heightForRowAtIndexPath:] – tableView:heightForRowAtIndexPath: Luke On Jan 14, 2010, at 6:46 AM, Eric E. Dolecki wrote:

iPhone: UITableView with cells of varying heights

2010-01-14 Thread Eric E. Dolecki
I am pulling in an RSS feed, and each item has it's own summary of a varying amount of text. I am using a table and presently setting the height of each row the same to allow for the most text. This looks awful as some items have a lot of empty space for it's row. Is it possible to have a UILabel