Launch an app from within another (iPhone)

后端 未结 14 1649
没有蜡笔的小新
没有蜡笔的小新 2020-11-22 01:14

Is it possible to launch any arbitrary iPhone application from within another app?, For example in my application if I want the user to push a button an

14条回答
  •  不思量自难忘°
    2020-11-22 01:34

    Try the following code will help you to Launch an application from your application

    Note: Replace the name fantacy with actual application name

    NSString *mystr=[[NSString alloc] initWithFormat:@"fantacy://location?id=1"];
    NSURL *myurl=[[NSURL alloc] initWithString:mystr];
    [[UIApplication sharedApplication] openURL:myurl];
    

提交回复
热议问题