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