if ([self.title isEqualToString:@"Chest Workouts"]) {
switch (row) {
case 0:
cell.textLabel.text = @"Bench Press";
cell.detailTextLabel.text = [NSString stringWithString:@"These are bench presses."];
cell.textLabel.font = [UIFont systemFontOfSize:14]; //Change this value to adjust size
cell.textLabel.numberOfLines = 2; //Change this value to show more or less lines.
break;
Did you remember to set the UITableViewCellStyle?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:[B]UITableViewCellStyleValue1[/B] reuseIdentifier:CellIdentifier] autorelease];
}
cell.textLabel.text = @"Whatever u want";
cell.detailTextLabel.text = @"Detail whatever u want";
return cell;
}
Listing 5-1 of that document shows you exactly where to put it.no i did read the documentation i knew i needed the subtitle but i just didnt know where to put it..
I'm confused. I thought you said you had read it.just because i said i did not read it before does not mean I would never read it...
I did not intend to make you feel like an idiot. I apologize if that's how it came across. I just wanted to point to specifically where the guide I directed you to helped you with your specific issue. I meant no harm.There really is no need for you to comment on this thread just to tell me that you did tell me where to put something... My bad i missed something... Not really cool to try to make me feel like a idiot
If by "this guy" you meant "jnoxx" and all you are seeking from this forum is code you can copy-and-paste, then I will have to bow out of helping you in the future. Copy-and-paste is not programming. Good luck, though.this guy just was more clear...
If by "this guy" you meant "jnoxx" and all you are seeking from this forum is code you can copy-and-paste, then I will have to bow out of helping you in the future. Copy-and-paste is not programming. Good luck, though.