简体   繁体   中英

Scrollview not working in ios7

I have scrollview in my xib. I have added it as subview of view. And I have added 2 labels in scrollview one is at top part and anotherone is at bootom. I have set:

scroller.contentSize=CGSizeMake(320, 1000);

And also set size of scrollview to 800 from xib.

But though scroll is not working. Am I missing something here?

Vivek if you cannot scroll the view even after setting contentSize properly then you have to uncheck "Use AutoLayout" . You can uncheck it from interface builder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM