UIScrollView won't scroll (Storyboards)

后端 未结 2 1058
我在风中等你
我在风中等你 2021-01-12 07:33

I\'m new to Storyboards; I\'ve done some Interface Builder before and lots of manual UI positioning. I\'ve searched this issue, tried the solutions found in the other releva

2条回答
  •  孤城傲影
    2021-01-12 07:36

    Just add the following method:

    - (void)viewDidLayoutSubviews
    {
        [super viewDidLayoutSubviews];
        [self.scrollView setContentSize:CGSizeMake(320, 1700)];
    }
    

    This is working perfectly for me.

提交回复
热议问题