Skip to content

Instantly share code, notes, and snippets.

@karosLi
Last active May 5, 2018 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karosLi/03fedd8e4e0f4442f9506b1a92eb64ac to your computer and use it in GitHub Desktop.
Save karosLi/03fedd8e4e0f4442f9506b1a92eb64ac to your computer and use it in GitHub Desktop.
判断代码是否在扩展里执行
+#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && !defined(AF_APP_EXTENSIONS)
- (void)setShouldExecuteAsBackgroundTaskWithExpirationHandler:(void (^)(void))handler; - (void)setShouldExecuteAsBackgroundTaskWithExpirationHandler:(void (^)(void))handler;
#endif #endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment