How to launch a process from my app?

Discussion in 'iOS Programming' started by HARDWARRIOR, Dec 17, 2008.

  1. macrumors member

    Joined:
    Nov 17, 2008
    #1
    Hi!
    I have a non-GUI app. And I need it to launch another application. That "another application" is mine too, so I can change a code of it.
    Because first app is non-GUI it has no singletone of UIApplication and no custom URL can be sent.

    system и execv commands don't execute a code passed to them and return -1 in a code like this:
    Code:
    NSString *path = [[NSString alloc] initWithString:@"killall SpringBoard"];
    int res = system([path UTF8String]);
    NSLog(@"res = %d", res);
    
    Any ideas how to solve such a problem?

    PS I don't want all of this to be appStore approvable! This is for jailbroken devices
     
  2. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #2
    Try one of the forums specializing in non-SDK app development.

    .
     

Share This Page