Home  >  Q&A  >  body text

ios9的search api --- NSUserActivity

我按照苹果开发者大会提供的代码创建了一个NSUserActivity,但是在spotlight里就是搜不出来。不知道各位是不是也遇到这个问题?还是我代码有问题?求高手解答

PHP中文网PHP中文网2766 days ago434

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 15:55:41

    If you compare the code provided by WWDC, without relying on CoreSpotlight, userActivity may be deallocated after execution is completed, resulting in failure to be indexed successfully.

    reply
    0
  • Cancelreply