nsattributedstring
How can I fake superscript and subscript with Core Text and an Attributed String?
I\'m using an NSMutableAttribtuedString in order to build a string with formatting, which I then pass to Core Text to render into a frame. The problem is, that I need to use superscript and subscript.[详细]
2023-01-19 02:14 分类:问答How can I clear the contents of an NSMutableAttributedString?
I have an ivar which is alloc-inited in the init of an object: attString = [[NSMutableAttributedString alloc] init];[详细]
2023-01-17 20:18 分类:问答iPhone CoreText: Find the pixel coordinates of a substring
Here\'s a screenshot of the twitter app for reference: http://screencast.com/t/YmFmYmI4M What I want to do is place a floating po开发者_如何学JAVAp-over on top of a substring in an NSAttributedString[详细]
2023-01-17 09:33 分类:问答NSForegroundColorAttributeName key in iPhone
I heard that NSAttributedString is added in iPhone but when I use the key NSForegroundColorAttributeName for setting the color i get an error saying \"NSFore开发者_JS百科groundColorAttributeName undec[详细]
2023-01-16 07:20 分类:问答Bold & Non-Bold Text In A Single UILabel?
How would it be possible to include both bold 开发者_开发技巧and non-bold text in a uiLabel? I\'d rather not use a UIWebView.. I\'ve also read this may be possible using NSAttributedString but I have[详细]
2023-01-14 10:16 分类:问答How to properly determine width of an attributed string
What I want to do: layout text using NSLayoutManager and set its NSTextContainer to the width of the widest string (glyph-wise) in an array of strings.[详细]
2023-01-14 06:53 分类:问答How do I display a NSAttributedString on an iPhone? [duplicate]
This question already has answers here: 开发者_运维知识库 iphone/ipad: How exactly use NSAttributedString?[详细]
2023-01-14 03:42 分类:问答Showing image before text in NSButtonCell in NSMatrix
I am displaying buttons in NSMatrix. My requirement is: to change color of button title and place an image at beginning of title, when certain condition is satisfied.[详细]
2023-01-12 11:55 分类:问答Search For NSAttributedString with custom attribute and Remove it? How to?
I have a placeholder string, a space character, in an NSTextView that I want to remove at a future time.My strategy is to assign the NSAttribut开发者_开发技巧edString a custom attribute and perform a[详细]
2023-01-10 07:12 分类:问答How do I set the color for an NSAttributedString on iPad?
I\'ve seen a lot of questions related to colored text answered with \"check out NSAttributedString\", but the NSForegroundColorAttributeName constant that is defined for Mac OS does not seem to be def[详细]
2023-01-07 03:55 分类:问答