textView 文字居上

来源:互联网 发布:怎么研发软件 编辑:程序博客网 时间:2024/05/01 23:38
storyboard创建的,textView上部无其他控件的话,文字不居上     6.0没有此方法,需判断版本

self.automaticallyAdjustsScrollViewInsets = NO;


//判断版本

if ([[[UIDevice currentDevice]systemVersion]floatValue]>=7.0) {

    }
else if ([[[UIDevice currentDevice]systemVersion]floatValue] < 7.0){
        

    }

0 0
原创粉丝点击