开发者

Adding IBActions to UIScrollView

Hey, I was wondering if it would be possible to add IBActions to a UIScrollView? So when the user has s开发者_Go百科crolled to the next image an IBAction is done?

Would this be possible?


You would have to implement the UIScrollViewDelegate protocol and implement the -scrollViewDidScroll: method. In that method, you could use UIScrollView's contentOffset property to determine the current scroll position, and from there figure out what image it has scrolled to.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜