I have one label which have a Dynamic string data e.g: "I am Mohit" .I want to make only "am" in bold.Is it Possible in iphone? if yes please give me suggestion.Thanks in advance:)
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
No you can't have text with different styles in standard UILabel. You need to use NSAttributedString and some custom solution to display them. Check this
No you can't have text with different styles in standard UILabel. What you'll probably need to use is
NSAttributedString
and some custom solution to display them. Check this question for some possible options.done something like this using three20's TTStyledTextLabel :) it works perfectly
you can use textView instead of label to fulfill your requirement.
ex:-
[textview setContentToHTMLString:@""];
Not with
UILabel
. Suggest 2 labels, or subclass. Many related answers, including this.