How can i remove vertical line from UITextView and typed text from left side in DALinedTextView?

171 Views Asked by At

I'm using DALinedTextView for lined UITextView. I want to remove red vertical line and type text from left side. How can i do this. Thanks in advance.

1

There are 1 best solutions below

2
Rohit Khandelwal On BEST ANSWER

Comment the [appearance setVerticalLineColor:DEFAULT_VERTICAL_COLOR]; in initialize method of DALinedTextView and if you don’t want to comment just change the color of #define DEFAULT_VERTICAL_COLOR to [UIColor clearColor] or any other color. After this in your viewController viewDidLoad method change textContainerInset like--

self.textView.textContainerInset = UIEdgeInsetsMake(18.0f, 0.0f, 8.0f, 10.0f);

you can change cursor position according your value.