• 赚钱入口【需求资源】限时招募流量主、渠道主,站长合作;【合作模式】CPS长期分成,一次推广永久有收益。主动打款,不扣量;

Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘UISearchController’s control over its search bar has been destroyed. Please use the search bar provided by the UISearchController. searchController = , searchBar = ; layer = >’

iOS cps12345 3个月前 (08-27) 66次浏览 0个评论

报错:

*** First throw call stack:
(
    0   CoreFoundation                      0x000000010e296c3e __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x000000010e104de0 objc_exception_throw + 48
    2   CoreFoundation                      0x000000010e296a7c +[NSException raise:format:] + 188
    3   UIKitCore                           0x000000011fa6e6b0 -[UISearchController _animatorForBarPresentationStyle:dismissing:] + 185
    4   UIKitCore                           0x000000011fa6eb24 -[UISearchController animationControllerForPresentedController:presentingController:sourceController:] + 34
    5   UIKitCore                           0x000000011f3a03a0 -[UIViewController _customAnimatorForPresentedController:presentingController:sourceController:] + 154
    6   UIKitCore                           0x000000011f3a4534 -[UIViewController _presentViewController:withAnimationController:completion:] + 4472
    7   UIKitCore                           0x000000011f3a6d1b __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 98
    8   UIKitCore                           0x000000011f3a7233 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 511
    9   UIKitCore                           0x000000011f3a6c79 -[UIViewController _presentViewController:animated:completion:] + 187
    10  UIKitCore                           0x000000011f3a6ee0 -[UIViewController presentViewController:animated:completion:] + 150

原因

iOS13中,不能在UISearchController中子类化UISearchBar

喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址