【发布时间】:2011-03-05 21:04:26
【问题描述】:
我有一个方法可以调用另一个带有 1 个参数的方法到另一个类。它工作得很好,但现在我需要 1 个参数,这是我的代码:
我收到“添加对象可能没有响应”
test.m
调用方法:
DrunkeNewIdeaAppDelegate *appDelegate = (DrunkeNewIdeaAppDelegate *)[[UIApplication sharedApplication] delegate];
Testes *myLevelObject = (Testes *)appDelegate.testViewController1;
[myLevelObject addobject:rephereanswer,nbimportant];
方法调用:
睾丸.h
-(void)addobject:(double)rephereanswer:(double)nbimportant;
睾丸.m
-(void)addobject:(double)rephereanswer:(double)nbimportant{
【问题讨论】:
标签: objective-c methods parameters