frank19900731
frank19900731
#define kLineSpacing 10.0 ... heightForRow function { ... RTLabel *rtLabel = [DemoTableViewCell textLabel]; [rtLabel setLineSpacing:kLineSpacing]; [rtLabel setText:[rowInfo objectForKey:@"text"]]; ... } cellForRow function { ... [cell.rtLabel setLineSpacing:kLineSpacing]; [cell.rtLabel setText:[[self.dataArray objectAtIndex:indexPath.row] objectForKey:@"text"]];...
I've met with the same problem that links below the first line is not clickable. Could you please tell me how you solved this problem?
OK. I've solved the problem by changing from [self.contentView addSubviews:subview1] to [self addSubviews:subview1]. Here self refers to a tableview cell, while subview1 refers to a view that contains RTLabel objects....