How to launch a process from my app?

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

    Expand Collapse
    macrumors member

    Nov 17, 2008
    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:
    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. firewood
    Expand Collapse
    macrumors 604

    Jul 29, 2003
    Silicon Valley
    Try one of the forums specializing in non-SDK app development.


Share This Page