【发布时间】:2010-03-09 18:58:33
【问题描述】:
我想出了这个,但认为它值得拥有自己的问答对。
我是 Xcode 和 Objective C 的新手,并且开始了解它的各种怪癖。例如,当我尝试编译以下代码时,会出现编译器警告“警告:''可能无法响应''”,这些代码都出现在我的实现文件中,因为我希望创建一个私有的这个类的静态效用函数:
// Here's the function declaration in the implementation file (I don't want it in the header)
+(void)authenticationRedirectTo:(NSURL *)url WithRelayState:(NSString *)relayState AndSAMLResponse:(NSString *)samlResponse {
...
}
...
// Later on, here's a call to that same function:
[CnaCalendarController authenticationredirectTo:formActionURL WithRelayState:relayState AndSAMLResponse:SAMLResponse];
...
编译时,会产生上述警告。接下来,我将发布我的解决方案。也欢迎提出您的想法!
【问题讨论】:
标签: objective-c xcode compiler-warnings