मैं एक टिंटकॉलर से दूसरे में बदलने के लिए, एक यूआईटीूलबार की टिंटकॉलर संपत्ति को एनिमेट करने की कोशिश कर रहा हूं।क्या मैं UIToolbar के टिंटकॉलर को फीका/एनिमेट कर सकता हूं?
यहां कोड है जो मैं कोशिश कर रहा हूं। दुर्भाग्य से, परिवर्तन तुरंत होता है और हरे से नीले रंग में फीका नहीं होता है। यह अजीब बात है क्योंकि मुझे ऐप्पल फीड्स और "दालें" टूलबार टिंट रंग पता है जब टेदरिंग या फोन कॉल पर। तो यह क्यों काम नहीं करता है?
// set initial tint color
myBottomToolBar.tintColor = [UIColor colorWithRed:0.15 green:0.95 blue:0.15 alpha:0.6];
//animation stuff
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.95];
[UIView setAnimationDelegate:self];
//thing to animate
myBottomToolBar.tintColor = [UIColor colorWithRed:0.15 green:0.35 blue:0.45 alpha:0.6];
//animation stuff
[UIView commitAnimations];
WSYIWYG संपादक में बाइनरी बटन के माध्यम से अपना कोड चिपकाएं। इस तरह यह अपनी स्वरूपण रखता है। – TALLBOY