Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (NSString *)infoText:(NSIndexPath *)indexPath {
- NSArray *settingArray = [self getArray];
- NSString *settingON = @"This is the setting that is supposed to be on";
- NSString *settingOFF = @"This is the setting that is supposed to be off";
- NSMutableAttributedString *settingDetails = [[NSMutableAttributedString alloc]
- initWithString:[NSString stringWithFormat:@"%@", [[settingArray objectAtIndex:indexPath.row] detail]]];
- [settingDetails addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"HelveticaNeue-Bold" size:20.0] range:NSMakeRange(0, [detail length])];
- NSString *infoText = [NSString stringWithFormat:@"%@ \n\n%@ \n\n%@", settingDetails, settingON, settingOFF];
- return infoText;
- }
Advertisement
Add Comment
Please, Sign In to add comment