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 10-13-2008, 01:22 AM   #5 (permalink)
Vortec4800
Registered Member
 
Join Date: Sep 2008
Posts: 160
Default

This is really useful, and I got my cell height correct - but I need to make the label height the correct size too otherwise it won't show anything but the first row. The frame of my label is set to CGRectMake(75.0, 12.0, 200.0, 25.0) which works but it's only high enough to show the first row. If I make the label height larger than 25.0 it tries to center the text vertically in the label so labels that actually only have 1 row don't show the text, and the white space continues under the label. How can I tell the label frame to grow?

My frame is set in the layout subviews call of my cell subclass so I don't have access at that point to the text in the cell, so I can't just calculate the height of the text at that point.
Vortec4800 is offline   Reply With Quote
 

» Advertisements
» Online Users: 694
22 members and 672 guests
306Designs, apatsufas, BrianSlick, chits12345, ckgni, coder, Dani77, devangvyas, Domele, JamesCahall, jameswilliards, k2c, my02820, nitingohel, Objective Zero, Oral B, Prajakta, rky, robin4kneb, skrew88, StormFactory, Vad
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,783
Threads: 89,204
Posts: 380,594
Top Poster: BrianSlick (7,129)
Welcome to our newest member, robin4kneb
Powered by vBadvanced CMPS v3.1.0

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