getInstance Color不适用于iPhone 5s及更高版本,但之前工作正常

时间:2015-03-05 09:22:13

标签: objective-c xcode

所有这个应用都运行良好,直到我不得不进入并重做UI,因为故事板被删除了。我现在似乎遇到了这个问题,但它从未发生过。

由于某种原因我的setInstanceColor颜色代码行:

[progressTimerView setInstanceColor:[UIColor colorWithRed:0.8 green:0.0 blue:0.0 alpha:0.5]];

 isn't working on iPhone 5s and above. iPhone 5 and under it works fine. Driving me nuts because I didn't have this issue before. 

if (self.quiz.isCorrect == YES){
        [progressTimerView setInstanceColor:[UIColor colorWithWhite:0.8f alpha:0.5f]];
                
    } else {
        

       [progressTimerView setInstanceColor:[UIColor colorWithRed:0.8 green:0.0 blue:0.0 alpha:0.5]];
        
       
    }

0 个答案:

没有答案