PDA

View Full Version : Slider control similar to ipad default calendar app




ashwinr87
May 3, 2011, 09:14 AM
Hi,

I would like to know how to implement the slider similar to the one in the Ipad default calendar application. I have attached the image below
http://www.google.com/imgres?imgurl=http://www.danedwardsphoto.com/wp-content/uploads/2010/04/calendar.png&imgrefurl=http://www.danedwardsphoto.com/2010/04/07/review-apple-ipad/&usg=__q65_ec8v70Z9X_5cQG38FtN7rzE=&h=488&w=650&sz=119&hl=en&start=0&zoom=1&tbnid=0haK3eUSkHssoM:&tbnh=129&tbnw=172&ei=cw3ATZ-PMIPJgQe10-TyBQ&prev=/search%3Fq%3Dipad%2Bcalendar%2Bapp%26hl%3Den%26safe%3Dactive%26sa%3DX%26biw%3D1276%26bih%3D684%26tbm %3Disch%26prmd%3Divnsufd&itbs=1&iact=hc&vpx=535&vpy=86&dur=41&hovh=194&hovw=259&tx=180&ty=93&page=1&ndsp=24&ved=1t:429,r:2,s:0

If you see at the bottom, it acts like a slider which allows us to select any month either by just pressing it or sliding to it.

It would be great if anyone could tell me the name of that control. I tried using UISlider but I see that it allows only 3 options,
setThumbImage, setMinimumTrackImage, setMaximumTrackImage


If that control is indeed a slider control, could anyone tell me how I would be able to insert multiple images/ text

Thanks



ashwinr87
May 4, 2011, 09:04 AM
I achieved a similar effect by creating a scrollview at the bottom and adding buttons which bring in whatever view I want...