Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 18, 2009, 08:17 PM   #1
jjgraz
macrumors regular
 
Join Date: Feb 2009
Wrap text in a specific TableView case?

I have a tableView with attached Detail page. In the detail page is a Indexed TableView. One of the items(cases) requires a text wrap....Is there a way to Wrap text in a specific TableView case? See Code Below. Any help would be greatly appreciated. Thank you.

- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath {

static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
}

switch(indexPath.section)

{
case 0:
cell.text = alabel.name;
cell.font=[UIFont fontWithName:@"Courier" size:15.0];
break;
case 1:
cell.text = alabel.date;
cell.font=[UIFont fontWithName:@"Courier" size:15.0];
break;


Thank you.
jjgraz is offline   0 Reply With Quote
Old Apr 19, 2009, 09:21 AM   #2
PhoneyDeveloper
macrumors 68020
 
PhoneyDeveloper's Avatar
 
Join Date: Sep 2008
You need to use a multiline label that's added the the cell if you want to wrap the text.
PhoneyDeveloper is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Wrap Text in CGContextShowTextAtPoint blackbook1991 iPhone/iPad Programming 2 Oct 9, 2011 03:28 PM
Make all cells wrap text in Numbers iWork 09? reubs Mac Applications and Mac App Store 6 Oct 4, 2011 09:35 AM
Grainy/Liney text in FCE lgtw Digital Video 0 Dec 11, 2010 11:44 PM
About wrapping text in tableview iphonejudy iPhone/iPad Programming 2 Mar 5, 2009 03:09 AM
Wrapping text in Mac Mail app? anotherjeff Mac Applications and Mac App Store 0 Mar 28, 2005 11:08 PM


All times are GMT -5. The time now is 06:13 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC