liyong03 / YLTextView

UITextView subclass with placeholder, it supports Arabic language which is Right-To-Left.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YLTextView

UITextView subclass with placeholder, it supports Arabic language which is Right-To-Left.

###How to use it

Just create the textview and set the placeholder, then add it to a view, done!

YLTextView* textview = [[YLTextView alloc] initWithFrame:CGRectMake(10, 30, 300, 100)];
textview.placeholder = NSLocalizedString(@"say_something", nil);
[self.view addSubview:textview];

Screen shots

Here are two screen shots for English and Arabic, it shows two kinds of text including LTR and RTL:

About

UITextView subclass with placeholder, it supports Arabic language which is Right-To-Left.

License:MIT License


Languages

Language:Objective-C 90.4%Language:Ruby 9.6%