开发者

how to jump to particular section of scrollView

Hello Guys: I have a scrollView in which I've populated some uibuttons horizontally开发者_开发知识库. The buttons actually have my text content in their title and are arranged alphabetically. As the content is quite much so user have to scroll n scroll if he wants to get to "H" from "A", I wanna know that how can i enable user to jump to a particular area depending on alphabet sorting.. like that happen in contacts app. There 'll be alphabets written and when user hits any alphabet scrollView scrolls to the first button starting with that character. Any ideas ....


Take a look at -[UIScrollView setContentOffset:animated:]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜