1

As suggested by jjv360 in another question of mine, one way to have a customized paging width for a scrollView is to make scrollView be the size for paging, and then overlaying a transparent UIView over it and doing [overlayView addGestureRecognizer:scrollView.panGestureRecognizer] for the touch event.

This sounds like a great idea and here is my quick question:

Is overlaying just [view addsubview OLvier] ? What is the views overlaying method?

4

2 に答える 2

0

うん... CGRectMakeを使用してビューフレームを設定し、オーバーレイを使用して

[scrollview addsubview: view1]

于 2013-02-27T07:09:19.080 に答える
0
UIView *yourView = [UIView alloc]init];
yourView.frame = CGRectMake(x,y,width,height)//whatever values work for you
[self.view addSubview: yourView];
于 2013-02-27T07:09:33.963 に答える