- (void)applicationDidEnterBackground:(UIApplication *)application
{
//进入后台添加视图</span>
blurView = [WDBlurView getBlurView];
[self.window addSubview:blurView];
}
-(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler{
completionHandler(UIBackgroundFetchResultNewData);
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
//进入前端删除视图
[blurView removeFromSuperview];
}
可以用于实现类似于支付宝的效果