开发者

Scrollview of tweetdeck

I am busy with an application and I want to implement a scrollview like the tweetdeck applic开发者_Go百科ation.

You can zoom in en out UITableviews within an UIScrollview.

I was wondering how they did that. What I can imagine is that there are two UIScrollviews. This because of the zoom in and out of one item in the UIScrollview.

What I don't understand is how the animation precise work and how they zoom out the UITableView. I was wondering if someone can help me to get in the right direction


Actually a UITableView is a UIScrollView, so if you add some code like following, you will be able to zoom your table view.

self.tableView.maximumZoomScale = 2.0;
self.tableView.minimumZoomScale = 1.0;

And a UIScrollView delegate method

- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{
    return self.tableView;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜