ios7下新增了一个属性textContainerInset, self.textView.textContainerInset = UIEdgeInsetsMake(10, 10, 0, 10);//设置页边距 上边距10,左右边距各10,底边距0