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 68030
 
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

Similar Threads
thread Thread Starter Forum Replies Last Post
Review: New Anker mag wrap case with built-in stand - way versatile & under 10 bones! dwm4p iPhone Accessories 14 Feb 23, 2014 07:14 AM
How to word wrap text when I pinch and zoom on web pages Subu iPad Tips, Help and Troubleshooting 4 Mar 9, 2013 08:31 AM
How to : Wrap up new apple headphones into carrying case newtumor iPhone Accessories 2 Jan 2, 2013 06:09 PM
Speck PixelSkin HD Wrap for iPad or Booq case? lunch iPad Accessories 0 May 31, 2012 05:54 AM

Forum Jump

All times are GMT -5. The time now is 09:23 AM.

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

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