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

使用故事板在 xcode 4.2 中設(shè)計(jì)滾動(dòng)視圖

Designing inside a scrollview in xcode 4.2 with storyboards(使用故事板在 xcode 4.2 中設(shè)計(jì)滾動(dòng)視圖)
本文介紹了使用故事板在 xcode 4.2 中設(shè)計(jì)滾動(dòng)視圖的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

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

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..

推薦答案

我感覺(jué)到你的痛苦.我發(fā)現(xiàn)的唯一方法是在尺寸檢查器中手動(dòng)平移滾動(dòng)視圖,以顯示您希望在視覺(jué)上編輯的視圖部分.

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 來(lái)包含元素,以便它們相對(duì)于該視圖定位.將視圖作為子視圖添加到 0,0 處的滾動(dòng)視圖.

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 坐標(biāo)說(shuō) -200,然后編輯內(nèi)容.
  2. 若要在隱藏部分放置更多內(nèi)容,請(qǐng)?jiān)俅纹揭埔燥@示新的不動(dòng)產(chǎn)
  3. 完成后,恢復(fù) ScrollView 的高度和 X、Y 位置的值.

確保滾動(dòng)視圖框架矩形小于包含的視圖.

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

這篇關(guān)于使用故事板在 xcode 4.2 中設(shè)計(jì)滾動(dòng)視圖的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

How to subclass UIScrollView and make the delegate property private(如何繼承 UIScrollView 并使委托屬性私有)
Swift - how to get last taken 3 photos from photo library?(Swift - 如何從照片庫(kù)中獲取最后拍攝的 3 張照片?)
Setting contentOffset programmatically triggers scrollViewDidScroll(以編程方式設(shè)置 contentOffset 觸發(fā) scrollViewDidScroll)
Photos app-like gap between pages in UIScrollView with pagingEnabled(使用 pagingEnabled 的 UIScrollView 中頁(yè)面之間的照片應(yīng)用程序式間隙)
why UIScrollView is leaving space from top in ios 6 and ios 7(為什么 UIScrollView 在 ios 6 和 ios 7 中從頂部留下空間)
UIScrollView pauses NSTimer while scrolling(UIScrollView 在滾動(dòng)時(shí)暫停 NSTimer)
主站蜘蛛池模板: 日本成年免费网站 | 日韩精品免费看 | 国内久久精品 | 视频一区二区在线观看 | 欧美一级在线观看 | 黄在线 | 一级免费a | 日本五月婷婷 | 亚洲 欧美 精品 | 国产精品久久久久久久久久免费看 | 91色在线 | 国产精品一区二区在线 | 欧美成人自拍视频 | 亚洲综合在线视频 | 国产一区二区三区视频免费观看 | 日韩在线不卡 | 久久成人免费视频 | 一区二区小视频 | 亚洲欧美日韩系列 | 九九99靖品 | 国产成人精品免费视频大全最热 | 国产视频精品在线 | 日韩精品成人 | 老牛嫩草一区二区三区av | 亚洲视频免费在线 | 中文字幕av在线播放 | 欧美激情一区二区三级高清视频 | 久久精品二区亚洲w码 | 成年免费大片黄在线观看岛国 | 99re在线视频免费观看 | av男人天堂影院 | 一级做a爰片久久毛片免费看 | 欧美在线视频一区二区 | 天天天操天天天干 | 国产免费一区二区三区网站免费 | 国产一区二区欧美 | 亚洲一一在线 | 在线精品一区二区三区 | 国产精品99 | 国产成人综合一区二区三区 | 男人的天堂中文字幕 |