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

有沒有辦法將 UITextView 的滾動指示器放到 UIText

Is there a way to put UITextView#39;s scroll indicator to outside UITextView?(有沒有辦法將 UITextView 的滾動指示器放到 UITextView 之外?)
本文介紹了有沒有辦法將 UITextView 的滾動指示器放到 UITextView 之外?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

這可能是一個愚蠢的問題.我正在嘗試像附圖一樣設置左/右頁邊距.我通過將 UITextView 添加到 UIScrollView 成功實現了它.但是,僅使用 UITextView 幾乎可以實現我想要的一切.比如UIScrollView,當我手動修改UITextView的文字時,不管它的.scrollEnabled是否設置為No,它都會自動滾動到底部.

It might be a silly question. I'm trying to set left/right margins like the attached picture. I succeeded to implement it by adding UITextView to UIScrollView. However, I could achieve almost everything I want with UITextView alone. For example, with UIScrollView, when I manually change the text of UITextView, it automatically scrolls to bottom regardless of setting its .scrollEnabled to No.

如果 UITextView 的滾動指示器出現在 UITextView 之外就完美了.在附圖中,假設紅色框代表整個 UITextView.我嘗試更改 UITextView 的 scrollIndicatorInsets 屬性,但滾動指示器只能向內移動才能看到.

It would be perfect if a scroll indicator of UITextView appears outside UITextView. In the attached picture, let's say the red box represents the entire UITextView. I tried to change UITextView's scrollIndicatorInsets property, but a scroll indicator can be moved only inward to be visible.

Pages、aWriter、Plaintext 等多個應用實現了此功能.可以給點建議嗎?

Several apps such as Pages, aWriter, Plaintext achieve this feature. Could you give any suggestion?

謝謝!

推薦答案

您可以將 UITextView 的滾動條右插入值設置為負值并禁用剪輯子視圖選項以實現您的要求.不需要其他滾動視圖.

You can set the scroller right inset value of the UITextView to negative value and disable the clip subview option to achieve your require. No other scrollview is needed.

這篇關于有沒有辦法將 UITextView 的滾動指示器放到 UITextView 之外?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

Stop a UITableView from automatically scrolling(阻止 UITableView 自動滾動)
iOS UIScrollView Lazy Loading(iOS UIScrollView 延遲加載)
using iOS 6.0 SDK and building for iOS 5 Target causes UIScrollView setMinimumZoomScale to fail when running on iOS 5 simulator(在 iOS 5 模擬器上運行時,使用 iOS 6.0 SDK 并為 iOS 5 Target 構建會導致 UIScrollView setMinimumZ
Create partial-screen UIPageViewController programmatically(以編程方式創建部分屏幕 UIPageViewController)
how to make an ImageView zoomable with or without ScrollView.?(如何使用或不使用 ScrollView 使 ImageView 可縮放?)
UIImageView zoom and pinch in UIScrollView(UIImageView 在 UIScrollView 中縮放和捏合)
主站蜘蛛池模板: www视频在线观看 | 91精品久久久久久久久99蜜臂 | 国产精品久久精品 | 精产嫩模国品一二三区 | 亚洲毛片在线 | 九九热精品视频 | 国产成人99久久亚洲综合精品 | 国产精品久久 | 免费观看一级毛片视频 | 国产成人精品久久二区二区91 | 国产欧美日韩一区二区三区 | 精品欧美久久 | 日韩av手机在线观看 | 国产精品免费一区二区三区四区 | a毛片视频网站 | 亚洲 欧美 综合 | 第四色狠狠 | 久久久久国产精品午夜一区 | 综合二区| 久久午夜精品 | 自拍亚洲 | 欧美日韩中 | 久久一区二区视频 | 一级欧美| 无码国模国产在线观看 | 国外成人在线视频 | 亚洲综合二区 | 四虎伊人| 亚洲欧美综合精品久久成人 | 91在线免费视频 | 中国毛片免费 | 永久免费在线观看 | 亚洲精品久久久久久久久久吃药 | 亚洲 成人 av | 国产精品久久久久无码av | 狠狠热视频 | 日韩免费av| 国产精品久久 | 国产清纯白嫩初高生在线播放视频 | 美国av片在线观看 | 日本高清aⅴ毛片免费 |