i am writing the texts from top to bottom and from right to left in japanese as i am taking a uitextview there is a gap between two characters , i want tomake it closer to each other plz give any code or idea.
Asked
Active
Viewed 536 times
3 Answers
0
There is no property within the UITextView
to explicitly set the letter spacing, or vertical spacing - with the native controls it can't be done.
If you want to do this you're going to have to create your own customized control.

Rushi
- 4,553
- 4
- 33
- 46
-
can u plz give me some idea how to make own customised control to full fil my requirement. – user1794031 Jan 24 '13 at 06:52
-
For that you can refer this SO http://stackoverflow.com/questions/2544905/how-to-change-an-uilabel-uifonts-letter-spacing – Rushi Jan 24 '13 at 06:53
0
For that create your Custom UITextView
or create Custom Font with your requirement...
For More information see Set line height in UITextView

Community
- 1
- 1

Paras Joshi
- 20,427
- 11
- 57
- 70
0
You can use attributed strings, as of iOS6. An attributed string can have a paragraph style, a paragraph style can have line spacing:
NSAttributedString reference - the paragraph style attribute name is NSParagraphStyleAttributeName
.

jrturton
- 118,105
- 32
- 252
- 268
-
i have tried with NSParagraphStyleAttributeName. it is working in simulator but not working in device. plz give me some idea to implement it, i have japanese character with top to bottom and having one character in each line. – user1794031 Jan 24 '13 at 12:17
-
i have an option to change the font dynamically when i am dynamically changing the font then that time it is not working. – user1794031 Jan 24 '13 at 13:01