久久久久久久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)
主站蜘蛛池模板: 欧美精品久久 | 久久久久久99 | 欧美a在线看 | 一区二区三区视频在线 | 日日骚视频 | 日韩在线三级 | 久久天天躁狠狠躁夜夜躁2014 | 中文字幕视频在线观看 | 午夜精品久久久久久久久久久久 | 黄色大片免费观看 | 成人不卡 | 欧州一区二区三区 | 久久久九九九九 | 日韩综合 | 亚洲一区二区久久久 | 久久婷婷国产麻豆91 | 99久久免费精品国产男女高不卡 | 久久久久久天堂 | 国产婷婷在线视频 | 亚洲精品1区 | 在线观看中文字幕视频 | 成人在线精品视频 | 青青草网 | 国产精品日本一区二区不卡视频 | 午夜爱爱网 | 超碰免费在线 | 酒色成人网 | 在线一区二区观看 | 国产成人免费一区二区60岁 | 天天色天天色 | 99精品免费久久久久久日本 | 精品国产一区二区三区性色av | 91久久国产精品 | 黄片毛片免费观看 | 久久精品日产第一区二区三区 | 国产精品福利视频 | 欧美精品久久久 | 国产欧美一区二区三区在线播放 | 久久久蜜臀国产一区二区 | 日韩手机在线看片 | 日韩精品一区二区三区中文在线 |