Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios13:performFetchWithCompletionHandler不再被调用_Ios_Swift_Xcode_Delphi_Ios13 - Fatal编程技术网

Ios13:performFetchWithCompletionHandler不再被调用

Ios13:performFetchWithCompletionHandler不再被调用,ios,swift,xcode,delphi,ios13,Ios,Swift,Xcode,Delphi,Ios13,今天我注意到一个奇怪的bug,我的performFetchWithCompletionHandler在我的iOS 13 iPhone中不再被调用(当我实现它时,它在我的旧iOS 11中工作得非常好) 在Delphi中,我是这样注册的: class_addMethod(objc_getClass('DelphiAppDelegate'), sel_getUid('application:performFetchWithCompletionHandler:'), @TMyForm.performFe

今天我注意到一个奇怪的bug,我的performFetchWithCompletionHandler在我的iOS 13 iPhone中不再被调用(当我实现它时,它在我的旧iOS 11中工作得非常好)

在Delphi中,我是这样注册的:

class_addMethod(objc_getClass('DelphiAppDelegate'), sel_getUid('application:performFetchWithCompletionHandler:'), @TMyForm.performFetchWithCompletionHandler, 'v@:@@');

SharedApplication.setMinimumBackgroundFetchInterval(300);

class procedure TMyForm.performFetchWithCompletionHandler(self: id; _cmd: SEL; application: PUIApplication; completionHandler: id);
begin
   //do the stuff
end;

但我等了整整一天,我的performFetchWithCompletionHandler从未被调用:(iOS13中有关performFetchWithCompletionHandler的某些更改?

performFetchWithCompletionHandler在iOS13中已被弃用,您可以检查:

是的,我知道它已被弃用,但这是否意味着它在iOS13中不再工作?