Questions tagged [nsparagraphstyle]

49 questions
0
votes
0 answers

Exception Reason: -[NSParagraphStyle bytes]: unrecognized selector sent to instance 0x16fe2130

I have an iOS that crash sometimes because of "Exception Reason: -[NSParagraphStyle bytes]: unrecognized selector sent to instance 0x16fe2130". The Crash log looks like: 0 CoreFoundation 0x2b520477 + 150 1 libobjc.A.dylib 0x3941bc8b…
varu
  • 339
  • 4
  • 16
0
votes
3 answers

How to have 2 alignments in a UILabel

I am trying to create a UILabel where some of the text is aligned to the right and some of the text is aligned to the left. It is similar to the UITableViewCell with the small arrow: I am trying to do it with NSAttributedString , but can't figure…
Avba
  • 14,822
  • 20
  • 92
  • 192
0
votes
1 answer

bug with LineBreakMode

Can you explain me why NSLineBreakByWordWrapping sometimes not working? It's tableView NSMutableParagraphStyle *paragrahStyle = [[NSMutableParagraphStyle alloc] init]; [paragrahStyle setLineSpacing:4]; paragrahStyle.lineBreakMode =…
Nikita
  • 154
  • 1
  • 13
0
votes
1 answer

How can I prevent a UITextView from drawing a long caret when I've specified a large paragraph spacing in iOS?

I'm setting paragraph style like so: NSTextStorage *textStorage = self.textView.textStorage; NSMutableParagraphStyle *paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; paragraphStyle.paragraphSpacing = FBTweakValue(@"Authoring…
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
1 2 3
4