1 Reply
      Latest reply on Dec 3, 2019 4:38 AM by WingWing
      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!