Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道有一个属性或方法使滚动视图/uiview 在滚动时调用 drawRect: 方法。由于性能原因,默认情况下是禁用的,但我需要启用它。我不记得方法的名称,因此我无法寻找它,任何知道我在寻找什么的人?
提前致谢
我建议使用 scrollViewDidScroll:-method 然后重绘视图。
- (void)scrollViewDidScroll:(UIScrollView *)scrollView { [someView setNeedsDisplay]; }