Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 1    Views: 131

Rohan
Veteran developer
Profile
Posts: 79
Reg: Mar 12, 2011
London
10,040
03/31/13 02:54 PM (11 years ago)

Progress view tint colour?

Hi and Happy Easter! I have a html screen that loads YouTube videos, question is does anyone out there know how to change the default blue colour on the horizontal playback bar when the videos are played? I've tried this code but no luck: [[UIProgressView appearance] setProgressTintColor:[UIColor colorWithRed:0 green:175.0/255.0 blue:176.0/255.0 alpha:1.0]]; [[UIProgressView appearance] setTrackTintColor:[UIColor colorWithRed:0.996 green:0.788 blue:0.180 alpha:1.000]]; Many thanks
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/27/14 02:13 PM (10 years ago)
Check out the online docs that Apple provides, super super useful! https://developer.apple.com/library/ios/documentation/uikit/reference/UIProgressView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006782-CH3-DontLinkElementID_4 Check out the properties and find the tint color stuff there, make sure nothing is overriding what you have now. David
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.