UITextView文字距顶显示

2016-12-09  本文已影响14人  Archer_S

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

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

猜你喜欢

热点阅读