我正在使用 openURL 打开带有参数的应用程序,但编译时出现错误(theos...mobilesubstrate)
这是我的代码: http: //pastie.org/private/mg6lbuttin85llxaxwdkw
抱歉,这里的代码格式不正确;O 正如您在最后看到的,我正在尝试使用以下参数打开 URL:“itemIdentifier”
任何帮助将不胜感激,谢谢:)
这是错误日志: http: //pastie.org/2460416
我正在使用 openURL 打开带有参数的应用程序,但编译时出现错误(theos...mobilesubstrate)
这是我的代码: http: //pastie.org/private/mg6lbuttin85llxaxwdkw
抱歉,这里的代码格式不正确;O 正如您在最后看到的,我正在尝试使用以下参数打开 URL:“itemIdentifier”
任何帮助将不胜感激,谢谢:)
这是错误日志: http: //pastie.org/2460416
我认为您需要将app
变量设为成员变量。我认为当你在-(void) open
方法中使用它时,它是零。
尝试这样的事情:
@interface SUItem__HAX : NSObject
{
long long itemIdentifier;
NSString *app;
}
然后-(void) setItem
改为NSString* app = appid;
_app = appID;
打开链接的方法还应该是:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:string];