滚动ScrollView控件时出现问题?

时间:2010-03-08 04:10:31

标签: iphone-sdk-3.0 scrollview

我的UIScrollView有问题。它是可见的,但我无法滚动它。

CGRect frame = CGRectMake(20, 90,280,1000);
scroll1=[[UIScrollView alloc]initWithFrame:frame];
scroll1.contentSize = CGSizeMake(280,1000);
scroll1.backgroundColor=[UIColor grayColor];

//scroll1.delegate=scroll1;
[scroll1 setUserInteractionEnabled:TRUE];
[scroll1 setPagingEnabled:TRUE];
[scroll1 setScrollEnabled:TRUE];
[scroll1 showsVerticalScrollIndicator];

提前致谢。

1 个答案:

答案 0 :(得分:1)

您已将框架设置为与内容相同的宽度和高度 尝试使用较小的框架,如(20,90,200,300)。

相关问题