UILabel-Textfarbe kann nicht geändert werden
Ich möchte die UILabel-Textfarbe ändern, kann aber die Farbe nicht ändern. So sieht mein Code aus.
UILabel *categoryTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 46, 16)];
categoryTitle.text = @"abc";
categoryTitle.backgroundColor = [UIColor clearColor];
categoryTitle.font = [UIFont systemFontOfSize:12];
categoryTitle.textAlignment = UITextAlignmentCenter;
categoryTitle.adjustsFontSizeToFitWidth = YES;
categoryTitle.textColor = [UIColor colorWithRed:188 green:149 blue:88 alpha:1.0];
[self.view addSubview:categoryTitle];
[categoryTitle release];
Die Beschriftungstextfarbe ist weiß, nicht meine benutzerdefinierte Farbe.
Vielen Dank für jede Hilfe.