storyboard创建的,textView上部无其他控件的话,文字不居上 6.0没有此方法,需判断版本
self.automaticallyAdjustsScrollViewInsets = NO;
//判断版本
if ([[[UIDevice currentDevice]systemVersion]floatValue]>=7.0) {
}
else if ([[[UIDevice currentDevice]systemVersion]floatValue] < 7.0){
}