как говорится в заголовке, я пытаюсь добавить поведение, подобное заполнению, к UITextView. Текстовое представление создается, когда представление помещается в мой контроллер навигации, и возникает следующий код:
self.textView.layer.cornerRadius = 7;
//pretty stuff is pretty
NSString *description = appDelegate.productInDisplay.description;
[self.textView setText:description];
//pretty stuff has content now
CGRect frame = textView.frame;
frame.size.height = textView.contentSize.height;
textView.frame = frame;
//set the UITextView to the size of it's containing text.
self.textView.editable = NO;
self.theScrollView.contentSize = CGSizeMake(320, 250 + textView.frame.size.height);
//set the parent scrollView's height to fit some other elements with fixed size (250)
//and the pre-mentioned UITextView
Итак, все работает, и все в порядке, но я хочу добавить отступы со всех 4 сторон UITextView, и я был Невозможно сделать это за 3 часа поиска в Google чего-то, что кажется довольно простым. Есть предложения?