xib中使用scrollView无法滑动

来源:互联网 发布:淘宝运营团队介绍 编辑:程序博客网 时间:2024/06/09 21:04

-(void) viewDidAppear:(BOOL)animated{

       self.scrollView.frame =CGRectMake(0, 0,320, 480);

       [self.scrollViewsetContentSize:CGSizeMake(320,1000)];

}

加上上面的代码应该没有问题了,不知道ios怎么这么怪,也不知道有没有其他的好方法。

0 0