I have been using this code to set the font of a UILabeland it has been working up until I installed Xcode 6.1:

self.navLabel = [[UILabel alloc] initWithFrame:CGRectMake(-85, 3, 320, 37)];
self.navLabel.font = [UIFont boldSystemFontOfSize:17];

However when I now try to archive my application in Xcode 6.1, it fails with error on the line setting the label's font stating:

Semantic Issue - assignment to readonly property

For some reason this error does not appear when running the application on my device. Any ideas? Thanks in advance.

Related posts

Recent Viewed