scrollView 在viewdidload 设置了contentsize之后无法滚动解决方法

因为在加载视图的时候根据xib的大小修改了contentsize

所以要在以下方法设置,即在视图已经出现的时候再设置一次

-(void)viewDidAppear:(BOOL)animated

{

    [super viewDidAppear:animated];

    contentScroll.contentSize = CGSizeMake(0, CGRectGetMaxY(friendView.frame));

}

 

posted on 2016-05-15 15:41  钰郡马  阅读(219)  评论(0编辑  收藏  举报