0
我正在做一些輕微或極其錯誤的事情。語法幫助必需(使用字符串變量)
我想換一個UIColour的可編程變量,例如:
NSString *DataColourTitle = @"greenColor";
[[UINavigationBar appearance] setTintColor: [UIColor [NSString stringWithFormat: @"%@", DataColourTitle]]];
我得到預期的標識符錯誤在NSString的一部分,並沒有制定出完成這一要求的格式。
輝煌 - 在NSSelectorFromString改爲@「綠彩」我的變量和工作第一次。非常感謝。 –