Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-13-2009, 08:27 PM   #11 (permalink)
PhoneyDeveloper
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

@pcmofo, All you need to do is implement heightForRowAtIndexPath like I showed earlier in the thread. You'll need to modify the width in that code to adjust the fudge factor.

If your cell is so simple that you don't add any subviews then there's no need to do anything else.

In the case where you've added a Label and you're adding your text to the label you also, in most cases, won't need to do anything else. UILabel can be configured to adjust its own height based on the text that's added to it, and you should also set the autoResizingMask to flexibleWidth and height. That way the height of the label will be automatically adjusted when the height of the row is specified by your code.
PhoneyDeveloper is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,852
Threads: 89,217
Posts: 380,670
Top Poster: BrianSlick (7,129)
Welcome to our newest member, syrreintyia1
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:06 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.