UITextView 不左上角显示
2015-07-19 10:19
106 查看
在Autolayout中 UITextView显示不左上角显示,修改如下
在viewDidLoad里面添加如下代码
if([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
{
self.automaticallyAdjustsScrollViewInsets = NO; // Avoid the top UITextView space, iOS7 (~bug?)
}
在viewDidLoad里面添加如下代码
if([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
{
self.automaticallyAdjustsScrollViewInsets = NO; // Avoid the top UITextView space, iOS7 (~bug?)
}
相关文章推荐
- 汤姆猫程序(UIImageView动画)
- Gitlab 上Iisues 使用以及代码管理
- UIView相对坐标转换
- ${pageContext.request.contextPath} JSP取得绝对路径
- poj1649 Rescue(BFS+优先队列)
- UIPopoverController和UIActionSheet在iPad中使用
- JSP之request对象
- 关于Hibernate的sequence diagram
- [LeetCode]Implement Queue using Stacks
- 玩转iOS 9的UIDynamics
- UITextView内容自适应高度&行间距的调转
- 【UI】自定义cell的步骤
- Stack and Queue 栈和队列
- rpmbuild 简单参数解释
- 075.Quick Sort 快速排序
- Message、Handler、Message Queue、Looper、Thread之间的关系(未完成)
- iOS开发——UI基础-屏幕适配
- Build Erlang-18.0 on Ubuntu-14.04
- UITextField只能输入数字以及输入数字和小数点并且小数点后保留2位小数
- UICollection view or Tableview 使用