【发布时间】:2015-08-13 16:33:35
【问题描述】:
我想为动画块写测试用例。
-(void)removeFooter {
[UIView animateWithDuration:0.3 animations:^{
self.contentOffset = CGPointMake(0, 0);
} completion:^(BOOL finished) {
if (!self.loadMoreDelegate) {
self.tableFooterView = nil;
}
}];
}
在测试用例中需要检查tablefooterview,但是self.tableFooterView = nil;在完成块中的一段时间后执行,而测试用例在它之前运行。请告诉我如何为此编写测试用例。
【问题讨论】:
标签: ios objective-c animation tdd testcase