Re: UITableCellView width decreases when scrolling

2013-04-16 Thread Koen van der Drift
On Apr 16, 2013, at 2:27 PM, Luke the Hiesterman wrote: > I'm guessing you need to call [self setNeedsDisplay] in the implementation of > -[MyCustomView setObject:] Yes, that's it! Thanks, - Koen. ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: UITableCellView width decreases when scrolling

2013-04-16 Thread Luke the Hiesterman
I'm guessing you need to call [self setNeedsDisplay] in the implementation of -[MyCustomView setObject:] Luke On Apr 16, 2013, at 11:25 AM, Koen van der Drift wrote: > > On Apr 15, 2013, at 7:20 AM, Koen van der Drift > wrote: > >> The reason I was using drawRect is that my cell contains

Re: UITableCellView width decreases when scrolling

2013-04-16 Thread Koen van der Drift
On Apr 15, 2013, at 7:20 AM, Koen van der Drift wrote: > The reason I was using drawRect is that my cell contains some text, plus a > small graph (a few changing lines, so I cannot use an static image) at the > bottom. Therefore I was using CoreGraphics, and I decided then to also draw > the

Re: UITableCellView width decreases when scrolling

2013-04-15 Thread Uli Kusterer
On 15.04.2013, at 13:20, Koen van der Drift wrote: > The reason I was using drawRect is that my cell contains some text, plus a > small graph (a few changing lines, so I cannot use an static image) at the > bottom. Therefore I was using CoreGraphics, and I decided then to also draw > the string

Re: UITableCellView width decreases when scrolling

2013-04-15 Thread Koen van der Drift
On Apr 15, 2013, at 1:27 AM, Luke Hiesterman wrote: > In general, if you want to put custom stuff in a cell, you should do it by > adding views - like labels, image views, etc. Only if you find a scrolling > performance problem and only if via profiling analysis you can show that the > perfor

Re: UITableCellView width decreases when scrolling

2013-04-15 Thread Koen van der Drift
On Apr 15, 2013, at 12:01 AM, Glenn L. Austin wrote: > You can't have the full 320 pixels in width and still have the disclosure > indicator. Well, you can, but you won't be happy with the result (and likely > won't get it past Apple's reviewers). I see, thanks. It doesn't have to be 320, 3

Re: UITableCellView width decreases when scrolling

2013-04-14 Thread Luke Hiesterman
I wouldn't put too much stock in the link you reference. Many of the statements made are simply wrong, and there are better strategies. In general, if you want to put custom stuff in a cell, you should do it by adding views - like labels, image views, etc. Only if you find a scrolling performan

Re: UITableCellView width decreases when scrolling

2013-04-14 Thread Glenn L. Austin
On Apr 14, 2013, at 8:43 PM, Koen van der Drift wrote: > I'm using a custom UITableCellView, with a UIView where I do all the drawing > as a subView of the contentView, more or less following the tutorial on this > page: > http://giorgiocalderolla.com/blog.html#customizing-uitableviewcells-a-