TintColor defaults??

I needed to programmatically tint a UISegmentedControl with a color if certain circumstances prevailed. But what if you need to revert to the default values (the ones when adding a UISegmentedControl in InterfaceBuilder)?

After a long search in the net, and lots of unsuccessful tries I found the easy solution:

[yourSegmentedControl setTintColor:nil]; //this changes the Segmented Control back to its default values (and colors)

It could be so easy ;-)


© MR-Apps 2011-2013