I know how to check if a string (NSString
) contains another smaller stringFor this m doing like:
if ([string rangeOfString:@"bla"].location == NSNotFound) {
NSLog(@"string does not contain bla");
} else {
NSLog(@"string contains bla!");
// here I need to make that string bold
}
Apart from this I want if I got that string I want to make it bold in the original string.So, is there any way to make my particular String Bold? Thanks in advance...