У меня есть UITextView, где пользователь может создавать заметки и сохранять в файл plist. Я хочу, чтобы показывать строки, как обычный ноутбук. Проблема у меня есть что текст не будет правильно выровняться.
Ниже приведено изображение проблемы.
Это фон, который я использую для создания строк, таких как Notes.app
Это мой код для создания фона для моего UITextView
:
textView.font = [UIFont fontWithName:@"MarkerFelt-Thin" size:19.0];
textView.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed: @"Notes.png"]];
Я знаю, что свойство UIFont.lineHeight
доступно только в > iOS 4.x.
Итак, интересно, есть ли другое решение моей проблемы?