美文网首页
UITextView文字距顶显示

UITextView文字距顶显示

作者: Archer_S | 来源:发表于2016-12-09 15:25 被阅读14次

默认是居中显示的,想改成距顶显示,其实也就是一句话,写一下,防忘!

//设置文字距顶
    if ([self respondsToSelector:@selector(setAutomaticallyAdjustsScrollViewInsets:)]) {
        self.automaticallyAdjustsScrollViewInsets = NO;
    }

相关文章

网友评论

      本文标题:UITextView文字距顶显示

      本文链接:https://www.haomeiwen.com/subject/pcnemttx.html