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

现实情况如上所示

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

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

其二:没有将BOOL类型的“

automaticallyAdjustsScrollViewInsets

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

法二:

self.edgesForExtendedLayout = UIRectEdgeNone;

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

原文地址:https://www.cnblogs.com/linzhengbo/p/5606881.html