How to resize storyboard? ios

会有一股神秘感。 提交于 2019-12-23 03:22:23

问题


I have more than 10 static table view cells in my app. How can I drag and drop it to storyboard? I can see only 7 of them, Its scrolling on simulator^ but not in storyboard


回答1:


tables dont scroll on storyboards or in the .xib files ,u just have to set the scrolling to yes and then u see it scrolling in simulator or devices




回答2:


This problem is very common in UIScrollView when Scroll content increase view Size.

There is no inbuilt solution like increase size of ViewController.

But we can have intermediate solution which can help us. Do following.

  1. Increase size of UIScrollView or UITableView such that it cover all content. something like 1000 or 1500.

  2. set Y to some minus value (like -100 or -300) so your control goes upside and you can see content at down side.

You have to set your Y according to which content you want to see.

Don't forget to change height back to original value after you finish work.



来源:https://stackoverflow.com/questions/17873861/how-to-resize-storyboard-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!