久久久久久久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)
主站蜘蛛池模板: 亚洲精品视频免费观看 | 久久免费视频1 | 国产三级一区二区三区 | 国产精品69毛片高清亚洲 | 拍戏被cao翻了h承欢 | 欧美视频免费在线观看 | 中文字幕免费在线 | 日韩精品久久久久 | 亚洲精品国产成人 | 成人伊人 | 午夜久久久 | 国产一级精品毛片 | 亚洲一区二区三区欧美 | 国产乱码精品一区二区三区忘忧草 | 国产精品久久久久久久久久久久冷 | 古典武侠第一页久久777 | 91国内精品久久 | www日本在线 | 午夜男人的天堂 | jizz亚洲人 | 亚洲精品 在线播放 | 欧美精品一区二区免费 | 国产 欧美 日韩 一区 | 精品国产乱码久久久久久果冻传媒 | 日韩一区中文字幕 | 国产成人精品久久二区二区 | 日本中文字幕在线观看 | 九色www| 欧美一区二区三区在线播放 | 在线观看中文字幕一区二区 | 国产欧美在线播放 | 欧美日韩大片 | 国产午夜精品久久久久 | 激情网站| 国产精品不卡一区二区三区 | 超碰在线免费av | 亚洲顶级毛片 | 在线激情视频 | 欧美一级精品片在线看 | 91av在线免费播放 | 国产一级在线 |