I am new in iPhone application development. i am developing now iPhone application. In this application i want make bold font in NSString value. How can i achieve this. I am used below code for making bold font text in NSString value. But showing error
like this Undefined symbols for architecture i386: "_kCIAttributeName",
NSString *boldFontName = [[UIFont boldSystemFontOfSize:12] fontName];
NSString *yourString = [NSString stringWithFormat:@"%@%@%@",key,@":",@" "];
NSRange boldedRange = NSMakeRange(22, 4);
NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:yourString];
[attrString beginEditing];
[attrString addAttribute:kCIAttributeName
value:boldFontName
range:boldedRange];
[attrString endEditing];
NSString *string = [NSString stringWithFormat:@"%@%@",attrString,[dic objectForKey:key]];
can you help me how to make bold font in string.
Thanks