iOS Background Fetch and completion block
问题 I am trying to define this method - (void)backgroundFetchWithCompletion:(void(^)(UIBackgroundFetchResult))completionHandler; However I am getting an error on UIBackgroundFetchResult saying a parameter list without types is only allowed, I was following this tutorial and this tutorial and that is how they define their method. 回答1: After executing some operation at the end you must call one in list. Objective-C completionHandler(UIBackgroundFetchResultNewData); completionHandler