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

使用故事板在 xcode 4.2 中設計滾動視圖

Designing inside a scrollview in xcode 4.2 with storyboards(使用故事板在 xcode 4.2 中設計滾動視圖)
本文介紹了使用故事板在 xcode 4.2 中設計滾動視圖的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一個垂直滾動的 uiscrollview - 想象一下標簽欄應用程序的關于此應用程序"頁面,它會運行一點并且需要滾動視圖.它只包含一些圖像、一個視頻和一些文本(只有視頻已被編碼 - 其余部分已放置在 GUI 中).在情節提要(界面生成器?)Xcode 4.2中,一切都按應有的方式設置并且工作正常,但是視圖僅與您在屏幕上看到的一樣大,是否無法在情節提要中手動排列項目最初在屏幕外 - 您需要向上滾動到?到目前為止,我發現的唯一方法是在可見視圖上設計它們,然后使用箭頭鍵向下導航.

I have a vertically scrolling uiscrollview - imagine an 'about this app' page of a tab bar app which goes on a bit and requires a scrollview. It only contains a few images, a video and some text (only the video has been coded in - the rest have been placed in the GUI). In storyboard (Interface Builder?) Xcode 4.2, everything is set up as it should be and works fine, but the view is only as large as what you see on the screen, is it not possible to manually arrange in storyboard the items that are initially offscreen - that you need to scroll up to? The only way I've found so far is to design them on the visible view then navigate them down with the arrow keys..

推薦答案

我感覺到你的痛苦.我發現的唯一方法是在尺寸檢查器中手動平移滾動視圖,以顯示您希望在視覺上編輯的視圖部分.

I feel your pain. The only way I found is to manually pan the scroll view in the size inspector to reveal the portion of the view that you wish to visually edit.

使用 UIView 來包含元素,以便它們相對于該視圖定位.將視圖作為子視圖添加到 0,0 處的滾動視圖.

Use a UIView to contain elements so they are positioned relatively to this view. Add the view as a subview to the scrollview at 0,0.

  1. 平移:使用 Y 坐標說 -200,然后編輯內容.
  2. 若要在隱藏部分放置更多內容,請再次平移以顯示新的不動產
  3. 完成后,恢復 ScrollView 的高度和 X、Y 位置的值.

確保滾動視圖框架矩形小于包含的視圖.

Make sure the scroll view frame rectangle is smaller than the contained view.

這篇關于使用故事板在 xcode 4.2 中設計滾動視圖的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)
主站蜘蛛池模板: 久久国产美女视频 | 国产999精品久久久 日本视频一区二区三区 | 国产高清视频 | 91久久久久 | 久久伊人亚洲 | 国产一二三区精品视频 | 欧美h版 | 国家一级黄色片 | 在线色网址 | 日日夜夜视频 | 欧美最猛黑人xxxx黑人 | 亚洲国产成人av好男人在线观看 | 亚洲欧洲在线观看视频 | 国产精品激情在线 | 亚洲精品电影网在线观看 | 91麻豆精品一区二区三区 | 狠狠操你 | 天天射影院 | 国产精品一二三区在线观看 | 综合色播 | 日韩成人免费视频 | 国产成人免费在线 | 久久久久国产 | 99久久精品免费看国产四区 | 亚洲午夜视频 | 91看片在线观看 | 色综合久久88色综合天天 | 亚洲一区在线日韩在线深爱 | 免费色网址| 精品国产乱码久久久久久丨区2区 | 精品久久久久久亚洲精品 | av午夜电影 | 91影院在线观看 | 一区二区成人 | 欧美日韩专区 | 亚洲综合婷婷 | 亚洲 欧美 激情 另类 校园 | 亚洲成人久久久 | 国产精品精品久久久 | 午夜av电影| av先锋资源 |