i am using this code to show some text in UITextview...in ViewDidLoad Method
self.fontSize = 23.0;
for(NSUInteger idx = 0; idx < [delegatee.allSelectedVerseEnglish count]; idx++) {
[combined appendFormat:@" %d %@",
idx + 1,
[delegatee.allSelectedVerseEnglish objectAtIndex:idx]];
};
maintextview.text =combined;
maintextview.textColor= [UIColor colorWithRed:0.376f green:0.282f blue:0.173f alpha:1.0f];
maintextview.font = [UIFont fontWithName:@"Georgia" size:self.fontSize];
combined
has the text which includes numeric charter also,how can i identify the numeric character and put brown color and change font to Georgia-Bold only of numercharacters.is it possible by using NSSanner or NSregular expression or something like that?.
how to do this?
Thanks in advance.