ios - Xcode7 UITest
巴扎黑
巴扎黑 2017-04-17 17:53:13
0
1
152

Xcode7中UITest自动化测试中获取到scrollView后利用swipeUp能让scrollView自动滚动,但怎样控制滚动距离?

巴扎黑
巴扎黑

répondre à tous(1)
PHPzhong
  • OC

[scrollView setContentOffset:CGPointMake(x, y) animated:YES];
  • Rapide

scrollView.contentOffset = CGPoint(x: x, y: y)
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal