如何让WebBrowser控件滚动条永远处于最后一行
展开全部
xtview默认显示滚动条.但只有拖动时...有个属性是tracking,但是是只读的...所以设置不了.不过我觉得可以用KVO拿到那个滚动条,KVC监听tracking ,当值NO时,果断显示...思路而已
偷懒就跟PM说,系统限制,不能做,但是自动滚到到最后一行,很简单,判断换行没,换了就设置其中一个方法
- (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated; // animate at constant velocity to new offset
- (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated; // scroll so rect is just visible (nearest edges). nothing if rect completely visible
对了 我发现了这个
- (void)flashScrollIndicators; // displays the scroll indicators for a short time. This should be done whenever you bring the scroll view to front.
你可以试一下 嘿嘿.
偷懒就跟PM说,系统限制,不能做,但是自动滚到到最后一行,很简单,判断换行没,换了就设置其中一个方法
- (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated; // animate at constant velocity to new offset
- (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated; // scroll so rect is just visible (nearest edges). nothing if rect completely visible
对了 我发现了这个
- (void)flashScrollIndicators; // displays the scroll indicators for a short time. This should be done whenever you bring the scroll view to front.
你可以试一下 嘿嘿.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询