Is there a way to put UITextView's scroll indicator to outside UITextView?

前端 未结 3 442
花落未央
花落未央 2021-01-04 22:51

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 c

3条回答
  •  走了就别回头了
    2021-01-04 23:28

    UIEdgeInsets insets =  textView.scrollIndicatorInsets;
    insets.right += 5; //add what ever is your margain
    textView.scrollIndicatorInsets = insets;
    

提交回复
热议问题