久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何在 Interface Builder 中使用 UIScrollView?

how do I use UIScrollView in Interface Builder?(如何在 Interface Builder 中使用 UIScrollView?)
本文介紹了如何在 Interface Builder 中使用 UIScrollView?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

雖然我過去通過編程操作成功地使用了 UIScrollView,但我無法通過僅在 Interface Builder 中設置它來使其工作.

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 in Interface Builder.

我的 iPhone 應用中有一個簡單的關于"頁面.它有一個 UITextView、一些圖標和指向我的其他應用程序的鏈接.我已將所有這些視圖添加到我的 UIScrollView 中,并對其進行排列以使它們的總大小 > 480.當我啟動我的應用程序時,滾動視圖僅顯示適合屏幕的內容,并且沒有滾動.

I have a simple "about" page in my iPhone app. It has a UITextView, some icons, and links to my other apps. I have added all of these views to my UIScrollView, arranging them so that their total size is > 480. When I launch my app, the scrollview displays only the contents that fit on the screen, and nothing scrolls.

是否可以完全通過 IB 來完成,還是必須通過代碼來操作 contentSize?

Is it possible to do this entirely via IB, or must I manipulate the contentSize via code?

推薦答案

你忘記設置 UIScrollView 的 contentSize 屬性了.奇怪的是,您不能從 Interface Builder 執行此操作.您必須從管理此滾動視圖的視圖控制器中執行此操作.

You forgot to set the contentSize property of the UIScrollView. Strangely enough you can not do this from Interface Builder. You will have to do it from the view controller managing this scroll view.

這篇關于如何在 Interface Builder 中使用 UIScrollView?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to subclass UIScrollView and make the delegate property private(如何繼承 UIScrollView 并使委托屬性私有)
Swift - how to get last taken 3 photos from photo library?(Swift - 如何從照片庫中獲取最后拍攝的 3 張照片?)
Setting contentOffset programmatically triggers scrollViewDidScroll(以編程方式設置 contentOffset 觸發 scrollViewDidScroll)
Photos app-like gap between pages in UIScrollView with pagingEnabled(使用 pagingEnabled 的 UIScrollView 中頁面之間的照片應用程序式間隙)
why UIScrollView is leaving space from top in ios 6 and ios 7(為什么 UIScrollView 在 ios 6 和 ios 7 中從頂部留下空間)
UIScrollView pauses NSTimer while scrolling(UIScrollView 在滾動時暫停 NSTimer)
主站蜘蛛池模板: 99精品视频在线 | 欧美日韩不卡 | 成人在线欧美 | 日韩精品久久一区二区三区 | 日韩精品久久久久久 | 丝袜一区二区三区 | 国产精品女人久久久 | 国产探花在线精品一区二区 | 欧美日韩精品一区二区三区四区 | 成人免费观看男女羞羞视频 | 久草欧美 | 免费看一区二区三区 | 午夜私人影院 | 欧美激情精品久久久久久变态 | 精品九九九 | 欧美黄色网 | 一区二区久久 | 青青草精品 | 一级做a爰片性色毛片 | 国产美女在线观看 | 日韩另类视频 | 国产免费又色又爽又黄在线观看 | 欧美色成人| 久久久久久一区 | www.久久 | 国产精品国产 | 国产精品一区二区av | 国产伦精品一区二区三区照片91 | a视频在线 | 欧美高清成人 | 一区二区三区亚洲 | 97久久精品午夜一区二区 | 欧美精品一区二区三区在线播放 | 国产午夜精品一区二区三区嫩草 | 91精品国产综合久久久久久 | 妖精视频一区二区三区 | 狠狠干网站 | 日本在线一区二区 | 91资源在线| 男女视频在线观看 | 亚洲精品福利在线 |