Any clue on how to set padding on left/right/top/bottom of a UITextView?
A:
Mmmm I never saw a padding property in the UITextView object. But maybe you just could do it by setting different valu to the textView frame ;-)
Vinzius
2010-09-24 17:27:52
A:
This can be achieved with this set of code:
self.myTextView.pagingEnabled = YES; UIEdgeInsets aUIEdge = [self.myTextView contentInset]; aUIEdge.left = 30; aUIEdge.right = 30; aUIEdge.top = 10; aUIEdge.bottom = 10;
self.myTextView.contentInset = aUIEdge;
You will get left/right/top/bottom paddings.
Abhinav
2010-09-24 18:14:17