redribben

infotext

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