pnmn
pnmn

Reputation: 1117

The same number of characters in each line of UITextView?

Hi I'm developing a simple writing program using UITextView to study Cocoa programming. In UITextView, each line has different number of characters. I tried to change fonts of UITextView, but the width of each character seems to vary. For example, l and L has different width.

Is there anyway to keep the same number of characters in each line of UITextView like emacs or just like this editing box of stackoverflow?

Thank you so much.

Upvotes: 1

Views: 714

Answers (1)

cobbal
cobbal

Reputation: 70763

easiest way is to use a monospaced font like Courier New

Upvotes: 6

Related Questions