您是否知道任何课程或书籍,无论是否免费,在Android中使用Robolectric或Mockito等技术教授TDD?
此代码使用委托
[[[UIAlertView alloc] initWithTitle: @ "Error" message: @ "You can leave the text blank" delegate: self cancelButtonTitle: @ "Quit" otherButtonTitles: @ "OK", nil] show];
Run Code Online (Sandbox Code Playgroud)
该代表是:
(void) alertView: (UIAlertView *) alertView clickedButtonAtIndex: (NSInteger) buttonIndex {
Run Code Online (Sandbox Code Playgroud)
我的问题是:你如何自动完成Xcode委托方法?
在Eclipse中,您可以从Source菜单选项Generate Delegate方法执行此操作.
问候并感谢!