本文介紹了是否可以將 UIScrollView 指示器從右側移動到左側?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我意識到我可以通過倒置"顯示滾動視圖來旋轉單元格并移動指示器,但這需要大量其他旋轉,并處理信息以使表格正確滾動.
I realize I can rotate the cells and move the indicator by displaying the scroll view "upside down" but that requires a lot of other rotations, and manipulating of information to make the Table scroll properly.
感謝您的時間
推薦答案
其實可以通過改變scrollIndicatorInsets
屬性來將指標限制在左側的一小塊區域:
Actually, it is possible by changing the scrollIndicatorInsets
property to restrict the indicator to a small area on the left side:
tableView.scrollIndicatorInsets = UIEdgeInsetsMake(0,0,0,tableView.bounds.size.width-10);
這篇關于是否可以將 UIScrollView 指示器從右側移動到左側?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!