久久久久久久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 中取消滾動)
主站蜘蛛池模板: 欧美一级在线 | 蜜臀av日日欢夜夜爽一区 | 亚洲视频在线观看 | 欧美在线视频一区 | 亚洲电影成人 | 色综合99 | 精精国产xxxx视频在线播放 | 亚洲精品久久久一区二区三区 | 天天拍天天操 | 91高清视频在线 | 欧美一区二区网站 | 久久久久网站 | av一区二区三区 | 欧美另类视频 | 中文字幕在线视频观看 | 国产精品自拍啪啪 | 国产激情91久久精品导航 | 91av在线免费看 | 国产一区二区免费在线 | 亚洲国产高清免费 | 亚洲国产成人精品久久久国产成人一区 | 国产麻豆乱码精品一区二区三区 | 久久91精品国产一区二区三区 | 精品成人在线视频 | 91国在线高清视频 | 中文字幕在线播放第一页 | 91激情电影 | 看片一区 | 精品一区二区三区电影 | 一级黄色片一级黄色片 | 亚洲激情在线观看 | 亚洲综合区 | 久草色视频 | 欧美精品一区二区三区在线播放 | 奇米av| 亚洲午夜av久久乱码 | 91玖玖| 在线免费观看日本视频 | 国产精品一区二 | 另类一区 | 欧美日在线 |