【发布时间】:2013-11-19 06:06:46
【问题描述】:
请告诉我如何在类似嵌套进程的滚动视图中设置滚动视图。
以下代码部分工作。
int x=10;
int y=10;
for(int i=0; i<5; i++)
{
UIScrollView *scrollview=[[UIScrollView alloc]initWithFrame:CGRectMake(x, y, 50, 50)];
scrollview.showsVerticalScrollIndicator=YES;
scrollview.scrollEnabled=YES;
scrollview.userInteractionEnabled=YES;
scrollview.backgroundColor = [UIColor greenColor];
[self.view addSubview:scrollview];
scrollview.contentSize = CGSizeMake(50,50);
y=y+95;
}
现在我只能看到 3 个滚动视图,而其他的都被隐藏了。如何创建主滚动视图以使子滚动视图不被隐藏?
【问题讨论】:
标签: ios iphone ios6 uiscrollview ios7