WWDC笔记:2013 Session 203 What’s New in Cocoa Touch(未完)
Multitasking
- Background fetching
- New background mode fetch
- - (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
- Tuning the fetch interval - (void)setMinimumBackgroundFetchInterval:(NSTimeInterval)minInterval; const NSTimeInterval UIApplicationBackgroundFetchIntervalMinimum const NSTimeInterval UIApplicationBackgroundFetchIntervalNever
- Remote notifications
- - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
- typedef NS_ENUM(NSUInteger, UIBackgroundFetchResult) { UIBackgroundFetchResultNewData, UIBackgroundFetchResultNoData, UIBackgroundFetchResultFailed }
- Background transfers
- NSURLSession Replacement API for NSURLConnection
- - (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)())completionHandler;
Related Session
- What’s New in Foundation Networking
Views and Images
Image Rendering Modes
- Creating an image with a rendering mode - (UIImage *)imageWithRenderingMode:(UIImageRenderingMode)renderingMode;
- Pass the mode typedef NS_ENUM(NSInteger, UIImageRenderingMode) { UIImageRenderingModeAutomatic, UIImageRenderingModeAlwaysOriginal, UIImageRenderingModeAlwaysTemplate }
Tint Color
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步