Our requirement is to show some text bold and some text as normal style in a label.
e.g. ABC 002
(there is not space between ABC and 002)
There are lots of instances of such labels on a single view, so using UIWebView is not preferred.
Is it possible using the UILabel? If no, then what are the alternatives?
Using normal
UILabeldont think this is possible.Check out this replacement for UILabel TTTAttributedLabel.
Another way is to use a CATextLayer with an NSAttributedString ! much lighter and simpler than 2 UILabels. (iOS 3.2 and above) as suggested here – Bold & Non-Bold Text In A Single UILabel?
Another way is to use 2
UILabelsand position them correctly relative to each other Check out this topic from a previous Stack Overflow.