我已经很多关于谷歌上搜索上面的标题,但不能得到我想要的解决方案。 我有一个使用静态库进行服务调用的ARC项目。当单击登录按钮凭据传递给库并获得对Login视图Controller的响应时,这就是问题发生的地方。我无法将数据传递给发送请求的查看控制器。 这里是代码发生错误:ARC语义问题:针对“的UIViewController”不可见@interface声明选择“loginResult:”
- (void)loginResult:(LoginData *)logData {
[viewCtrl loginResult:logData]; ->No Visible @Interface for 'UIViewController' declares the selector 'loginResult:'
}
在.H(静态库类)
#import <UIKit/UIKIt.h>
@interface MobileWebMethods : NSObject {
UIViewController *viewCtrl;
}
@property (nonatomic, retain) UIViewController *viewCtrl;
- (void)loginResult:(LoginData *)logData;
好像'viewCtrl'只是一个'UIViewController'和未实现该方法'loginResult定制子类:'。你确定'viewCtrl'指向你的自定义类的一个实例吗?请分享更多的代码。 – s1m0n 2013-05-09 14:41:42
对此有任何更新,你有没有进展或计划添加所有的代码,以便我可以检查情况? – 2013-05-13 09:06:33