Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jjgraz

macrumors regular
Original poster
Feb 13, 2009
103
0
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:mad:"Courier" size:15.0];
break;
case 1:
cell.text = alabel.date;
cell.font=[UIFont fontWithName:mad:"Courier" size:15.0];
break;


Thank you.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.