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

UIScrollView 底部的 UIButtons 不起作用

UIButtons at the bottom of UIScrollView not working(UIScrollView 底部的 UIButtons 不起作用)
本文介紹了UIScrollView 底部的 UIButtons 不起作用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在我的故事板中創建了一個 UIScrollView,并在 UIScrollView 內的容器視圖中添加了 12 個 UIButton.

I created a UIScrollView in my storyboards and have added 12 UIButtons in a container View which is inside the UIScrollView.

在 iPhone 5s 模擬器上運行時,屏幕上可以看到 9 個按鈕,其余按鈕只有向下滾動才能看到.

when running on the iPhone 5s simulator, 9 of the buttons can be seen on the screen, the rest of the buttons only can be seen when you scroll down.

最初可以在屏幕上看到的 9 個按鈕可以與之交互.但是,滾動視圖底部的 3 個按鈕(必須滾動到才能看到)無法交互.

the 9 buttons that can be initially seen on the screen can be interacted with. However the 3 buttons at the bottom of the scroll view (which have to be scrolled to in order to be seen) cannot be interacted with.

我在 iPhone 6 模擬器上運行該應用程序,該模擬器無需滾動即可在屏幕上顯示所有 12 個按鈕,并且底部 3 個按鈕可以工作.

I ran the app on an iPhone 6 simulator which displays all 12 of the buttons on the screen without having to scroll and the bottom 3 buttons work.

我正在使用自動布局.

我曾嘗試擺弄 UIScrollView 的 contentSize,但它沒有幫助.

I have tried fiddling with the contentSize of the UIScrollView and it does not help.

推薦答案

看來你需要增加容器視圖的框架高度.scrollView 的 contentSize 只影響它的滾動方式,這里無關緊要.

It seems you need to increase the frame height of container view. The contentSize of scrollView only affects how it will scroll, which is irrelevant here.

如果按鈕在容器視圖之外,它仍然會顯示.但是,它無法響應任何觸摸事件.

If the button is outside the container view, it will still show up. However, it can't respond to any touch event.

這篇關于UIScrollView 底部的 UIButtons 不起作用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

scrollViewWillEndDragging:withVelocity:targetContentOffset: not working on the edges of a UISCrollView(scrollViewWillEndDragging:withVelocity:targetContentOffset: 不在 UISCrollView 的邊緣工作) - IT屋-程序員軟件開發技術分享社
ImageView Scaling when scrolling down(向下滾動時 ImageView 縮放)
Bounds automatically changes on UIScrollView with content insets(UIScrollView 上的邊界自動更改,帶有內容插圖)
iOS5 UITapRecognizer for UIScrollView interfering with buttons. How to fix?(用于 UIScrollView 的 iOS5 UITapRecognizer 干擾按鈕.怎么修?)
Handling scroll views with (custom, interactive) view controller presentation and dismissal(使用(自定義、交互式)視圖控制器呈現和解除處理滾動視圖)
How to Cancel Scrolling in UIScrollView(如何在 UIScrollView 中取消滾動)
主站蜘蛛池模板: 久久精品日韩 | 色天使在线视频 | 久久精品欧美一区二区 | 国产精品久久久久久无人区 | 午夜国产在线观看 | 污视频网站在线观看 | 国产精品伦理一区 | 国产91在线播放 | 综合久久99 | 99热视| 日韩一区二区视频在线观看 | 国产亚洲视频在线观看 | 黄色大片儿 | 国产一区二区网站 | 亚洲在线一区 | 国产日韩久久 | 99久久久 | 国产伦精品一区二区三区视频我 | 国产精品日日摸天天碰 | a级黄色片| 黄色大片视频 | 天天操天天插 | 96精品| 国产二区视频在线观看 | 九九综合网 | 国产超碰人人模人人爽人人添 | 国产区在线 | 免费一区二区三区 | 精品久久一区二区 | 日韩中文字幕视频 | 久久免费高清视频 | 美女免费网站 | 福利片在线观看 | 国产视频网 | 日本精品中文字幕 | 青草国产| 亚洲综合视频在线 | 综合久久久 | 亚洲欧美在线观看视频 | 亚洲成在线 | 中文久久乱码一区二区 |