0
iOS 개발에 초보자입니다. 나는 내 애플 리케이션에 딥 링크를 추가하여 url 스키마를 선호하므로 다른 앱에서 내 앱을 열고 싶을 때 앱이 열려 있고 즉각적으로 어떤 메소드도 호출되지 않는다. 로 여기에 같은didFinishLaunchingWithOptions이 URL 스키마에서 앱을 실행할 때 호출되지 않았습니다.
은 내가 didFinishLaunchingWithOptions
방법
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"Info" message:@"Finish Called" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil,nil];
[alert show];
[self.window makeKeyAndVisible];
return YES;
}
에 경고를 추가 또한이 방법은 내 응용 프로그램은
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"Info" message:[NSString stringWithFormat:@"%@",url] delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil,nil];
[alert show];
return YES;
}
그것은 열어 시작 화면이 열려 호출되지 않을 때, 어떤 하나의 도움을 수 추락 이걸로?
미리 감사드립니다.
백그라운드에서 'openUrl'이 호출되지만 앱이 일시 중단되면 아무 일도 일어나지 않습니다. –
그런 다음 didFinishLaunchingWithOptions가 호출되고이 메소드의 옵션 사전에서 ur가 생성됩니다. –
경고가 코드에 표시됩니다. –