how do I use UIScrollView in Interface Builder?

后端 未结 17 1437
遇见更好的自我
遇见更好的自我 2020-11-28 19:52

While I\'ve used UIScrollView successfully in the past by manipulating it programmatically, I\'m having trouble getting it to work by setting it up exclusively

17条回答
  •  不知归路
    2020-11-28 19:56

    Just remove the autoLayout on your scrollview. then the code is as simple as this:

    scrollviewName.contentSize = CGSizeMake(0, 650);
    

    just create an iboulet property on .h file then synthesize on .m file. Make sure that the scrolling is enabled.

提交回复
热议问题