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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-29-2008, 10:33 PM   #1 (permalink)
Duncan C
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 5,991
Duncan C has a spectacular aura about
Default How to calculate height of cell to contain text?

I am creating a UITableView that will be used to display cells that contain, among other things, a UITextView. (or possibly a UILabel)

The contents of the text view will vary from cell to cell. I want to make each cell tall enough to display the text in it's text view.

How do I calculate how tall my text field needs to be in order to display the text I want to display? (at the current font and size for the view.)
Duncan C is offline   Reply With Quote
 

» Advertisements
» Online Users: 410
15 members and 395 guests
Alexanskoo, AragornSG, aziz, diane21, EvilElf, hrushikeshaddon, juanramoney, nicsmotherman, pipposanta, PixelEnvision, QuantumDoja, roelien, smashing, subhan1, tymex
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,609
Threads: 94,084
Posts: 402,783
Top Poster: BrianSlick (7,990)
Welcome to our newest member, diane21
Powered by vBadvanced CMPS v3.1.0

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