Top "Nsmutableattributedstring" questions

NSMutableAttributedString add different alignments

Is it possible to add left and right alignments to different parts of the string? I tried to add alignment …

objective-c ios6 nsmutableattributedstring
Add NSUnderlineStyle.PatternDash to NSAttributedString in Swift?

I'm trying to add an underline to some text in my Swift app. This is the code I have currently: …

ios swift nsattributedstring nsmutableattributedstring
Setting NSLinkAttributeName font color

I feel like I'm missing something easy but I can't seem to find out how to do this: I set …

ios nsmutableattributedstring
Setting NSForegroundColorAttributeName on an attributed string shifts the text down on iOS 6

I'm using attributed strings in my iOS app to give the text some style: NSDictionary *titleAttributes = @{NSFontAttributeName: [UIFont fontWithName:@"Raleway" …

ios ios6 uilabel nsattributedstring nsmutableattributedstring
Set label font with bold and italic

I'm trying to set a specific part of my label to bold and italic with NSMutableAttributedString, but I can only …

ios swift fonts nsmutableattributedstring
NSMutableAttributedString initWithData: causing EXC_BAD_ACCESS on rotation

I display different types of contents in a tableview and calculate the height of each cell using different custom methods, …

ios ios7 exc-bad-access nsmutableattributedstring
How to remove attributes from the NSAttributedString swift?

I have added some attributes to my buttons attributedTitle let attr = NSMutableAttributedString(string: currTitle) attr.addAttribute(NSStrikethroughStyleAttributeName, value: 2, range: NSMakeRange(0, …

ios swift nsattributedstring setattribute nsmutableattributedstring