UITextView 开始编辑时,文字没有左上角对齐解决办法 tableview整体上移

现实情况如上所示

我出现这种情况的原因有两种:

其一:没有给textview对齐方式;

其二:没有将BOOL类型的“

automaticallyAdjustsScrollViewInsets

”属性置为no (默认为yes)

 

法二:

self.edgesForExtendedLayout = UIRectEdgeNone;

 

内容参考自:http://www.cnblogs.com/ZGSmile/p/5476354.html

posted @ 2016-06-22 13:58  一路脚印走下去  阅读(1793)  评论(0编辑  收藏  举报