久久久久久久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 中縮放和捏合)
主站蜘蛛池模板: 在线观看亚洲 | 久久综合久久久 | 国产精品国产成人国产三级 | 在线91| a精品视频 | 国产精品电影网 | 91精品久久久久 | 日韩中文字幕一区二区 | 作爱视频免费看 | 国产成人影院 | 成人亚洲性情网站www在线观看 | 中文字幕亚洲一区二区三区 | 亚洲色片网站 | 欧美v在线观看 | 久久综合伊人 | 国产欧美在线 | 国产精品色| 国产高清在线观看 | eeuss国产一区二区三区四区 | 91av在线影院| 精品一区在线看 | 精品久久一区 | 欧美成人一级 | 亚洲欧美精品在线观看 | 色av一区 | 日日操夜夜操天天操 | 国产精品久久av | 日日夜夜精品 | 在线三级电影 | 久久久无码精品亚洲日韩按摩 | 色网站视频 | 日韩一二区在线观看 | 一级毛片大全免费播放 | www.久久久.com | 欧美在线免费 | 欧美亚洲国产日韩 | 中文av网站 | 欧美成人激情视频 | 欧洲免费毛片 | 国产精品久久久久久久久久妇女 | 亚洲精选一区 |