iOS: Autolayout causing UIScrollView to not scroll

后端 未结 3 729
抹茶落季
抹茶落季 2021-01-04 08:18

I have set up a UIScrollView with which I want to display 12 images (only 8 fit on screen) laid out horizontally. In the following image you can see the problem

3条回答
  •  死守一世寂寞
    2021-01-04 08:52

    Insert: [scrollView setContentSize:CGSizeMake(x,y)]; in the following method:

    -(void)viewWillAppear:(BOOL)animated
    

提交回复
热议问题