简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM