如何从 UITextView 中删除垂直线并在 DALinedTextView 中从左侧键入文本?
How can i remove vertical line from UITextView and typed text from left side in DALinedTextView?
我将 DALinedTextView
用于内衬 UITextView
。我想删除红色垂直线并从左侧键入文本。我怎样才能做到这一点。提前致谢。
Comment
DALinedTextView
的 initialize
方法中的 [appearance setVerticalLineColor:DEFAULT_VERTICAL_COLOR];
如果您不想发表评论,只需将 #define DEFAULT_VERTICAL_COLOR
的颜色更改为 [UIColor clearColor]
或任何其他颜色。
在此之后,在您的 viewController
viewDidLoad
方法中更改 textContainerInset
like--
self.textView.textContainerInset = UIEdgeInsetsMake(18.0f, 0.0f, 8.0f, 10.0f);
您可以根据您的值更改光标位置。
我将 DALinedTextView
用于内衬 UITextView
。我想删除红色垂直线并从左侧键入文本。我怎样才能做到这一点。提前致谢。
Comment
DALinedTextView
的 initialize
方法中的 [appearance setVerticalLineColor:DEFAULT_VERTICAL_COLOR];
如果您不想发表评论,只需将 #define DEFAULT_VERTICAL_COLOR
的颜色更改为 [UIColor clearColor]
或任何其他颜色。
在此之后,在您的 viewController
viewDidLoad
方法中更改 textContainerInset
like--
self.textView.textContainerInset = UIEdgeInsetsMake(18.0f, 0.0f, 8.0f, 10.0f);
您可以根据您的值更改光标位置。