1

I have an app in which I was using the following code to create an outlined text for my labels.

self.label1.attributedText = [[NSAttributedString alloc] initWithString:fourthString attributes:@{NSStrokeColorAttributeName:[UIColor blackColor],NSForegroundColorAttributeName:[UIColor whiteColor],NSStrokeWidthAttributeName:@-2.0}];

All of the sudden it stopped working with the warning Thread 1: EXC_BAD_ACCESS (code=2, address=0x16b5c7e50) and could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.

If I change it to

self.label2.text = fourthString:

it works fine. What happened

Lal Krishna
  • 15,485
  • 6
  • 64
  • 84
user1114881
  • 731
  • 1
  • 12
  • 25

0 Answers0