Question

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 trying to open the URL with the argument: "itemIdentifier"

Any help would be much appreciated, thanks :)

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

Was it helpful?

Solution

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];

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top