开发者

OpenURL on iphone problem with strings

i am using openURL to open an app with arguments but i get errors when compiling (theos...mobilesubstrate)

Here is my code: http://pastie.org/private/mg6lbuttin85llxaxwdkw

sorry the code wasn't formating right here ;O As you can see at the end, i'm t开发者_开发技巧rying to open the URL with the argument: "itemIdentifier"

Any help would be much appreciated, thanks :)

here is the error log: http://pastie.org/2460416


I think you need to make your app variable a member variable. I think that by the time you come to use it in the -(void) open method, it's nil.

Try something like this:

@interface SUItem__HAX : NSObject
{
    long long itemIdentifier;
    NSString *app;
}

then in -(void) setItem change NSString* app = appid; to app = appID;

The method to open a link should also read: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:string];

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜