我的问题是这样的:-
{ someview = [[someview1 alloc]initWithFrame:CGRectMake(0, 0, 1024, 1024)) resolution:CGSizeMake(768, 960))];
scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0,768,960)];
scrollView.contentSize = CGSizeMake(1024,1024);
scrollView.bouncesZoom = YES;
scrollView.pagingEnabled = YES;
scrollView.backgroundColor = [UIColor blackColor];
scrollView.showsHorizontalScrollIndicator = YES;
scrollView.showsVerticalScrollIndicator = YES;
scrollView.userInteractionEnabled = YES;
CGRect Frame=rdcview.bounds;
scrollView.minimumZoomScale = 1.0;
scrollView.maximumZoomScale = 2.0;
[scrollView setDelegate:self];
[scrollView addSubview:someview1];
[self.view addSubview:scrollView];
}
毕竟我旋转了我的设备,但视图在所有方向上都不能滚动,请帮助我找到解决方案。
注意:--它滚动但不粘住它们,当我移开手指时它会回到以前的
位置。