For iOS7 use textContainerInset
@property(nonatomic, assign) UIEdgeInsets textContainerInset NS_AVAILABLE_IOS(7_0);
For Bellow iOS7, use contentInset and set UIEdgeInsetsMake as the syntax below.
UIKIT_STATIC_INLINE UIEdgeInsets UIEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right) { UIEdgeInsets insets = {top, left, bottom, right}; return insets; }
According to your code, you only install the top insert. But if you want to set all sides, you need to set the content insert, for example, below: -
if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1) { _TxtViewSummary.contentInset = UIEdgeInsetsMake(10, 0, 10, 0); } else { _TxtViewSummary.textContainerInset = UIEdgeInsetsMake(10, 10, 10, 10); }
It looks like this: -

Nitin Gohel Apr 08 '14 at 11:19
source share