UIDatePicker and UIPickerView

, Andreas Katzian

Sometimes it is necessary to adjust the color of the standard UIDatePicker and UIPickerView controls within your iOS application. Sadly the iOS SDK doesn’t support to change the background color or even the tint of these controls. A simple workaround for this is to create separate images and use them within an UIImageView as your custom overlay. For this solution I made some simple photoshop templates which you’ll find over here. These photoshop templates are already made for the iPhone retina display and you can scale them down by your own.

Below you’ll find an example with a custom black-grey-based overlay for the UIDatePicker and UIPickerView. Hope this is helpful for somebody.



Andreas Katzian
code

comments powered by Disqus

 

Recent Posts

 

Kinect on MacOS X with Homebrew

How to get libfreenect running with homebrew on MacOS X 10.8

Updating sitemap file on Heroku

Updating the sitemap.xml on Heroku for your rails application by using the sitemap_generator gem and AWS S3/CloudFront.

Various ActiveResource Tips

Enabling Logging, Set different model name, Set HTTP headers, Set xml/json format

Show NSWindow below your NSStatusItem

Show your own window below your status bar application.