0 Replies
      Latest reply on Oct 10, 2019 6:40 PM by sadasdasdadasda
      sadasdasdadasda Level 1 Level 1 (0 points)

        I  tried to use INUIAddVoiceShortcutViewController to add a shortcut, but it was not localized, the same code works fine on iOS 12, so does INUIEditVoiceShortcutViewController.

         

         

         

                         INShortcut *shortcut = [[INShortcut alloc] initWithIntent: intent];

                         INUIAddVoiceShortcutViewController *addVoiceShortcutViewController = [[INUIAddVoiceShortcutViewController alloc] initWithShortcut: shortcut];

                         addVoiceShortcutViewController.delegate = self;

                         addVoiceShortcutViewController.modalPresentationStyle = UIModalPresentationFullScreen;

                         [self presentViewController: addVoiceShortcutViewController animated: YES completion: nil];

         

         

        When I present the view controller, the log shows as below:

         

        [default] +[LSApplicationProxy applicationProxyFor*] is not a supported method for getting the LSApplicationProxy for the current process, use +[LSBundleProxy bundleProxyForCurrentProcess] instead.

         

        Any help will be appreciated!