I am trying to create something like this (look at the time), you can basically slide it horizontally.
开发者_如何学CCan anyone give me any suggestions on how to do this in iOS?
You'd use UIScrollView which you can constrain to just horizontal movement. The Scrolling demo may help to get you started.
It is pretty easy:
- create a scrollview with frame of (xOrigin,yOrigin,SCREEN WIDTH,Height).
- set the content size to (CONTENT WIDTH, Height).
- setShowsHorizontolScrollIndicator to no to hide the scroll indicator.
Note: Width of the contentSize property should be greater than the frame width to make it horizontally scrollable.
精彩评论