python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Different font output for same NSAttributedString with CATextLayer and NSTextView
In macOS using the same NSMutableAttributedString for a CATextLayer and a NSTextView seems to give different rendering results. The NSTextView has a slightly larger font than a CATextLayer. This behav...

Chris Walken
Votes: 0
Answers: 1
I don't know how to set text inset into uilabel from uiimage in swift
I was written to code using NSMutableAttributedString() with UIImage() and String.
extension UILabel {
func attachImageLabel(string: String, image: UIImage?) {
let attachment = NSTextA...
Tae Hun Yu
Votes: 0
Answers: 0
Why can't I mutate an NSObject allocated as mutable, referenced as immutable, then cast back to mutable?
I'm allocating an NSMutableAttributedString, then assigning it to the attributedString property of an SKLabelNode. That property is an (NSAttributedString *), but I figured that I could cast it to an ...
eglynum
Votes: 0
Answers: 1