1

我正在学习如何使用 KiWi 框架遵循 TDD,到目前为止,我的第一个问题是关于如何将现有属性请求到 UIViewController 类中,如下所示:

it(@"should have ",^{

       UILabel *descriptionLabel = (UILabel *)[viewController objectForPropertyName:@"descriptionLabel"];
       [descriptionLabel shouldNotBeNil];

    });

这里的问题是“objectForPropertyName”是另一个框架类的方法。

有没有办法只使用 Kiwi 框架来询问“descriptionLabel”?

4

0 回答 0