├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── XHRealTimeBlur.podspec ├── XHRealTimeBlur ├── XHRealTimeBlur.h └── XHRealTimeBlur.m └── XHRealTimeBlurExample ├── XHRealTimeBlurExample.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── XHRealTimeBlurExample.xccheckout │ └── xcuserdata │ │ └── JackMacbook.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcshareddata │ └── xcschemes │ │ └── XHRealTimeBlurExample.xcscheme └── xcuserdata │ └── JackMacbook.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── XHRealTimeBlurExample.xcscheme │ └── xcschememanagement.plist ├── XHRealTimeBlurExample ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── Main_iPad.storyboard │ └── Main_iPhone.storyboard ├── IMG_0117.JPG ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── InputTextViewController.h ├── InputTextViewController.m ├── RootTableViewController.h ├── RootTableViewController.m ├── ViewController.h ├── ViewController.m ├── XHRealTimeBlurExample-Info.plist ├── XHRealTimeBlurExample-Prefix.pch ├── en.lproj │ └── InfoPlist.strings └── main.m └── XHRealTimeBlurExampleTests ├── XHRealTimeBlurExampleTests-Info.plist ├── XHRealTimeBlurExampleTests.m └── en.lproj └── InfoPlist.strings /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by http://www.gitignore.io 2 | 3 | #!! ERROR: obj is undefined. Use list command to see defined gitignore types !!# 4 | 5 | ### Objective-C ### 6 | # Xcode 7 | # 8 | build/ 9 | *.xcuserstate 10 | *.xcbkptlist 11 | *.pbxuser 12 | !default.pbxuser 13 | *.mode1v3 14 | !default.mode1v3 15 | *.mode2v3 16 | !default.mode2v3 17 | *.perspectivev3 18 | !default.perspectivev3 19 | xcuserdata 20 | *.xccheckout 21 | *.moved-aside 22 | DerivedData 23 | *.hmap 24 | *.ipa 25 | *.xcuserstate 26 | .DS_Store 27 | 28 | # CocoaPods 29 | # 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Pods/ 35 | *.xcuserstate 36 | 37 | XHRefreshControlExample/XHRefreshControlExample.xcodeproj/project.xcworkspace/xcuserdata/JackMacbook.xcuserdatad/UserInterfaceState.xcuserstate 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | osx_image: xcode7 2 | language: objective-c 3 | xcode_project: XHRealTimeBlurExample/XHRefreshControlExample.xcodeproj 4 | xcode_schemes: XHRealTimeBlurExample 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Jack 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | RealTimeBlur 2 | ============ 3 | 4 | RealTimeBlur applies to the view, transitions, background. 5 | 6 | 7 | ![image](https://github.com/xhzengAIB/LearnEnglish/raw/master/Screenshots/XHRealTimeBlur.gif) 8 | 9 | ## Podfile 10 | 11 | [CocosPods](http://cocosPods.org) is the recommended method to install XHRealTimeBlur, just add the following line to `Podfile` 12 | 13 | ``` 14 | pod 'XHRealTimeBlur' 15 | ``` 16 | 17 | and run `pod install`, then you're all done! 18 | 19 | ## Requirements 20 | 21 | * iOS 7.0+ 22 | * ARC 23 | 24 | ## How to use 25 | Easy to drop into your project. 26 | * #import "XHRealTimeBlur.h" 27 | * [self.view showRealTimeBlurWithBlurStyle:XHBlurStyleTranslucent]; 28 | * [self.view disMissRealTimeBlur]; 29 | * And them 30 | * [self.view - (void)showRealTimeBlurWithBlurStyle:XHBlurStyleTranslucent hasTapGestureEnable:YES]; // or NO 31 | 32 | ## License 33 | 34 | RealTimeBlur is available under the MIT license, see the LICENSE file for more information. 35 | 36 | 37 | -------------------------------------------------------------------------------- /XHRealTimeBlur.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "XHRealTimeBlur" 3 | s.version = "1.7" 4 | s.summary = "RealTimeBlur applies to the view, transitions, background." 5 | s.homepage = "https://github.com/xhzengAIB/RealTimeBlur" 6 | s.license = "MIT" 7 | s.authors = { "xhzengAIB" => "xhzengAIB@gmail.com" } 8 | s.source = { :git => "https://github.com/xhzengAIB/RealTimeBlur.git", :tag => "1.7" } 9 | s.frameworks = 'Foundation', 'CoreGraphics', 'UIKit' 10 | s.platform = :ios, '7.0' 11 | s.source_files = 'XHRealTimeBlur/*.{h,m}' 12 | s.requires_arc = true 13 | end 14 | -------------------------------------------------------------------------------- /XHRealTimeBlur/XHRealTimeBlur.h: -------------------------------------------------------------------------------- 1 | // 2 | // XHRealTimeBlur.h 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-7. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | typedef void(^WillShowBlurViewBlcok)(void); 13 | typedef void(^DidShowBlurViewBlcok)(BOOL finished); 14 | 15 | typedef void(^WillDismissBlurViewBlcok)(void); 16 | typedef void(^DidDismissBlurViewBlcok)(BOOL finished); 17 | 18 | 19 | static NSString * const XHRealTimeBlurKey = @"XHRealTimeBlurKey"; 20 | 21 | static NSString * const XHRealTimeWillShowBlurViewBlcokBlcokKey = @"XHRealTimeWillShowBlurViewBlcokBlcokKey"; 22 | static NSString * const XHRealTimeDidShowBlurViewBlcokBlcokKey = @"XHRealTimeDidShowBlurViewBlcokBlcokKey"; 23 | 24 | static NSString * const XHRealTimeWillDismissBlurViewBlcokKey = @"XHRealTimeWillDismissBlurViewBlcokKey"; 25 | static NSString * const XHRealTimeDidDismissBlurViewBlcokKey = @"XHRealTimeDidDismissBlurViewBlcokKey"; 26 | 27 | typedef NS_ENUM(NSInteger, XHBlurStyle) { 28 | // 垂直梯度背景从黑色到半透明的。 29 | XHBlurStyleBlackGradient = 0, 30 | // 类似UIToolbar的半透明背景 31 | XHBlurStyleTranslucent, 32 | // 黑色半透明背景 33 | XHBlurStyleBlackTranslucent, 34 | // 纯白色 35 | XHBlurStyleWhite 36 | }; 37 | 38 | @interface XHRealTimeBlur : UIView 39 | 40 | /** 41 | * Default is XHBlurStyleTranslucent 42 | */ 43 | @property (nonatomic, assign) XHBlurStyle blurStyle; 44 | 45 | @property (nonatomic, assign) BOOL showed; 46 | 47 | // Default is 0.3 48 | @property (nonatomic, assign) NSTimeInterval showDuration; 49 | 50 | // Default is 0.3 51 | @property (nonatomic, assign) NSTimeInterval disMissDuration; 52 | 53 | /** 54 | * 是否触发点击手势,默认关闭 55 | */ 56 | @property (nonatomic, assign) BOOL hasTapGestureEnable; 57 | 58 | @property (nonatomic, copy) WillShowBlurViewBlcok willShowBlurViewcomplted; 59 | @property (nonatomic, copy) DidShowBlurViewBlcok didShowBlurViewcompleted; 60 | 61 | @property (nonatomic, copy) WillDismissBlurViewBlcok willDismissBlurViewCompleted; 62 | @property (nonatomic, copy) DidDismissBlurViewBlcok didDismissBlurViewCompleted; 63 | 64 | 65 | - (void)showBlurViewAtView:(UIView *)currentView; 66 | 67 | - (void)showBlurViewAtViewController:(UIViewController *)currentViewContrller; 68 | 69 | - (void)disMiss; 70 | 71 | @end 72 | 73 | @interface UIView (XHRealTimeBlur) 74 | 75 | @property (nonatomic, copy) WillShowBlurViewBlcok willShowBlurViewcomplted; 76 | @property (nonatomic, copy) DidShowBlurViewBlcok didShowBlurViewcompleted; 77 | 78 | 79 | @property (nonatomic, copy) WillDismissBlurViewBlcok willDismissBlurViewCompleted; 80 | @property (nonatomic, copy) DidDismissBlurViewBlcok didDismissBlurViewCompleted; 81 | 82 | - (void)showRealTimeBlurWithBlurStyle:(XHBlurStyle)blurStyle; 83 | - (void)showRealTimeBlurWithBlurStyle:(XHBlurStyle)blurStyle hasTapGestureEnable:(BOOL)hasTapGestureEnable; 84 | - (void)disMissRealTimeBlur; 85 | 86 | @end 87 | -------------------------------------------------------------------------------- /XHRealTimeBlur/XHRealTimeBlur.m: -------------------------------------------------------------------------------- 1 | // 2 | // XHRealTimeBlur.m 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-7. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import "XHRealTimeBlur.h" 10 | 11 | @interface XHGradientView : UIView 12 | 13 | @end 14 | 15 | @implementation XHGradientView 16 | 17 | + (Class)layerClass { 18 | return [CAGradientLayer class]; 19 | } 20 | 21 | - (instancetype)initWithFrame:(CGRect)frame { 22 | self = [super initWithFrame:frame]; 23 | if (self) { 24 | self.backgroundColor = [UIColor clearColor]; 25 | CAGradientLayer *gradientLayer = (CAGradientLayer *)self.layer; 26 | gradientLayer.colors = @[ 27 | (id)[[UIColor colorWithWhite:0 alpha:1] CGColor], 28 | (id)[[UIColor colorWithWhite:0 alpha:0.5] CGColor], 29 | ]; 30 | } 31 | return self; 32 | } 33 | 34 | @end 35 | 36 | @interface XHRealTimeBlur () 37 | 38 | @property (nonatomic, strong) XHGradientView *gradientBackgroundView; 39 | @property (nonatomic, strong) UIToolbar *blurBackgroundView; 40 | @property (nonatomic, strong) UIView *blackTranslucentBackgroundView; 41 | @property (nonatomic, strong) UIView *whiteBackgroundView; 42 | 43 | @end 44 | 45 | @implementation XHRealTimeBlur 46 | 47 | - (void)showBlurViewAtView:(UIView *)currentView { 48 | [self showAnimationAtContainerView:currentView]; 49 | } 50 | 51 | - (void)showBlurViewAtViewController:(UIViewController *)currentViewContrller { 52 | [self showAnimationAtContainerView:currentViewContrller.view]; 53 | } 54 | 55 | - (void)disMiss { 56 | [self hiddenAnimation]; 57 | } 58 | 59 | #pragma mark - Private 60 | 61 | - (void)showAnimationAtContainerView:(UIView *)containerView { 62 | if (self.showed) { 63 | [self disMiss]; 64 | return; 65 | } else { 66 | if (self.willShowBlurViewcomplted) { 67 | self.willShowBlurViewcomplted(); 68 | } 69 | } 70 | self.alpha = 0.0; 71 | [containerView insertSubview:self atIndex:0]; 72 | [UIView animateWithDuration:self.showDuration delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{ 73 | self.alpha = 1.0; 74 | } completion:^(BOOL finished) { 75 | self.showed = YES; 76 | if (self.didShowBlurViewcompleted) { 77 | self.didShowBlurViewcompleted(finished); 78 | } 79 | }]; 80 | } 81 | 82 | - (void)hiddenAnimation { 83 | [self hiddenAnimationCompletion:^(BOOL finished) { 84 | 85 | }]; 86 | } 87 | 88 | - (void)hiddenAnimationCompletion:(void (^)(BOOL finished))completion { 89 | if (self.willDismissBlurViewCompleted) { 90 | self.willDismissBlurViewCompleted(); 91 | } 92 | 93 | [UIView animateWithDuration:self.disMissDuration delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{ 94 | self.alpha = 0.0; 95 | } completion:^(BOOL finished) { 96 | if (completion) { 97 | completion(finished); 98 | } 99 | if (self.didDismissBlurViewCompleted) { 100 | self.didDismissBlurViewCompleted(finished); 101 | } 102 | self.showed = NO; 103 | [self removeFromSuperview]; 104 | }]; 105 | } 106 | 107 | - (void)handleTapGestureRecognizer:(UITapGestureRecognizer *)tapGestureRecognizer { 108 | [self hiddenAnimationCompletion:^(BOOL finished) { 109 | 110 | }]; 111 | } 112 | 113 | #pragma mark - Propertys 114 | 115 | - (void)setHasTapGestureEnable:(BOOL)hasTapGestureEnable { 116 | _hasTapGestureEnable = hasTapGestureEnable; 117 | [self setupTapGesture]; 118 | } 119 | 120 | - (XHGradientView *)gradientBackgroundView { 121 | if (!_gradientBackgroundView) { 122 | _gradientBackgroundView = [[XHGradientView alloc] initWithFrame:self.bounds]; 123 | } 124 | return _gradientBackgroundView; 125 | } 126 | 127 | - (UIToolbar *)blurBackgroundView { 128 | if (!_blurBackgroundView) { 129 | _blurBackgroundView = [[UIToolbar alloc] initWithFrame:self.bounds]; 130 | [_blurBackgroundView setBarStyle:UIBarStyleBlackTranslucent]; 131 | } 132 | return _blurBackgroundView; 133 | } 134 | 135 | - (UIView *)blackTranslucentBackgroundView { 136 | if (!_blackTranslucentBackgroundView) { 137 | _blackTranslucentBackgroundView = [[UIView alloc] initWithFrame:self.bounds]; 138 | _blackTranslucentBackgroundView.backgroundColor = [UIColor colorWithWhite:0.000 alpha:0.500]; 139 | } 140 | return _blackTranslucentBackgroundView; 141 | } 142 | 143 | - (UIView *)whiteBackgroundView { 144 | if (!_whiteBackgroundView) { 145 | _whiteBackgroundView = [[UIView alloc] initWithFrame:self.bounds]; 146 | _whiteBackgroundView.backgroundColor = [UIColor clearColor]; 147 | _whiteBackgroundView.tintColor = [UIColor colorWithWhite:0.2 alpha:1.0]; 148 | } 149 | return _whiteBackgroundView; 150 | } 151 | 152 | - (UIView *)backgroundView { 153 | switch (self.blurStyle) { 154 | case XHBlurStyleBlackGradient: 155 | return self.gradientBackgroundView; 156 | break; 157 | case XHBlurStyleTranslucent: 158 | return self.blurBackgroundView; 159 | case XHBlurStyleBlackTranslucent: 160 | return self.blackTranslucentBackgroundView; 161 | break; 162 | case XHBlurStyleWhite: 163 | return self.whiteBackgroundView; 164 | break; 165 | default: 166 | break; 167 | } 168 | } 169 | 170 | #pragma mark - Life Cycle 171 | 172 | - (void)setup { 173 | self.showDuration = self.disMissDuration = 0.3; 174 | self.blurStyle = XHBlurStyleTranslucent; 175 | self.backgroundColor = [UIColor clearColor]; 176 | 177 | _hasTapGestureEnable = NO; 178 | } 179 | 180 | - (void)setupTapGesture { 181 | if (self.hasTapGestureEnable) { 182 | UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTapGestureRecognizer:)]; 183 | [self addGestureRecognizer:tapGestureRecognizer]; 184 | } 185 | } 186 | 187 | - (id)initWithFrame:(CGRect)frame 188 | { 189 | self = [super initWithFrame:frame]; 190 | if (self) { 191 | // Initialization code 192 | [self setup]; 193 | } 194 | return self; 195 | } 196 | 197 | - (id)initWithCoder:(NSCoder *)aDecoder { 198 | self = [super initWithCoder:aDecoder]; 199 | if (self) { 200 | [self setup]; 201 | } 202 | return self; 203 | } 204 | 205 | - (void)willMoveToSuperview:(UIView *)newSuperview { 206 | if (newSuperview) { 207 | UIView *backgroundView = [self backgroundView]; 208 | backgroundView.userInteractionEnabled = NO; 209 | [self addSubview:backgroundView]; 210 | } 211 | } 212 | 213 | @end 214 | 215 | #pragma mark - UIView XHRealTimeBlur分类的实现 216 | 217 | @implementation UIView (XHRealTimeBlur) 218 | 219 | #pragma mark - Show Block 220 | 221 | - (WillShowBlurViewBlcok)willShowBlurViewcomplted { 222 | return objc_getAssociatedObject(self, &XHRealTimeWillShowBlurViewBlcokBlcokKey); 223 | } 224 | 225 | - (void)setWillShowBlurViewcomplted:(WillShowBlurViewBlcok)willShowBlurViewcomplted { 226 | objc_setAssociatedObject(self, &XHRealTimeWillShowBlurViewBlcokBlcokKey, willShowBlurViewcomplted, OBJC_ASSOCIATION_COPY_NONATOMIC); 227 | } 228 | 229 | - (DidShowBlurViewBlcok)didShowBlurViewcompleted { 230 | return objc_getAssociatedObject(self, &XHRealTimeDidShowBlurViewBlcokBlcokKey); 231 | } 232 | 233 | - (void)setDidShowBlurViewcompleted:(DidShowBlurViewBlcok)didShowBlurViewcompleted { 234 | objc_setAssociatedObject(self, &XHRealTimeDidShowBlurViewBlcokBlcokKey, didShowBlurViewcompleted, OBJC_ASSOCIATION_COPY_NONATOMIC); 235 | } 236 | 237 | #pragma mark - dismiss block 238 | 239 | - (WillDismissBlurViewBlcok)willDismissBlurViewCompleted { 240 | return objc_getAssociatedObject(self, &XHRealTimeWillDismissBlurViewBlcokKey); 241 | } 242 | 243 | - (void)setWillDismissBlurViewCompleted:(WillDismissBlurViewBlcok)willDismissBlurViewCompleted { 244 | objc_setAssociatedObject(self, &XHRealTimeWillDismissBlurViewBlcokKey, willDismissBlurViewCompleted, OBJC_ASSOCIATION_COPY_NONATOMIC); 245 | } 246 | 247 | - (DidDismissBlurViewBlcok)didDismissBlurViewCompleted { 248 | return objc_getAssociatedObject(self, &XHRealTimeDidDismissBlurViewBlcokKey); 249 | } 250 | 251 | - (void)setDidDismissBlurViewCompleted:(DidDismissBlurViewBlcok)didDismissBlurViewCompleted { 252 | objc_setAssociatedObject(self, &XHRealTimeDidDismissBlurViewBlcokKey, didDismissBlurViewCompleted, OBJC_ASSOCIATION_COPY_NONATOMIC); 253 | } 254 | 255 | #pragma mark - RealTimeBlur HUD 256 | 257 | 258 | - (XHRealTimeBlur *)realTimeBlur { 259 | return objc_getAssociatedObject(self, &XHRealTimeBlurKey); 260 | } 261 | 262 | - (void)setRealTimeBlur:(XHRealTimeBlur *)realTimeBlur { 263 | objc_setAssociatedObject(self, &XHRealTimeBlurKey, realTimeBlur, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 264 | } 265 | 266 | #pragma mark - 分类 公开方法 267 | 268 | - (void)showRealTimeBlurWithBlurStyle:(XHBlurStyle)blurStyle { 269 | [self showRealTimeBlurWithBlurStyle:blurStyle hasTapGestureEnable:NO]; 270 | } 271 | 272 | - (void)showRealTimeBlurWithBlurStyle:(XHBlurStyle)blurStyle hasTapGestureEnable:(BOOL)hasTapGestureEnable { 273 | XHRealTimeBlur *realTimeBlur = [self realTimeBlur]; 274 | if (!realTimeBlur) { 275 | realTimeBlur = [[XHRealTimeBlur alloc] initWithFrame:self.bounds]; 276 | realTimeBlur.blurStyle = blurStyle; 277 | [self setRealTimeBlur:realTimeBlur]; 278 | } 279 | realTimeBlur.hasTapGestureEnable = hasTapGestureEnable; 280 | 281 | realTimeBlur.willShowBlurViewcomplted = self.willShowBlurViewcomplted; 282 | realTimeBlur.didShowBlurViewcompleted = self.didShowBlurViewcompleted; 283 | 284 | realTimeBlur.willDismissBlurViewCompleted = self.willDismissBlurViewCompleted; 285 | realTimeBlur.didDismissBlurViewCompleted = self.didDismissBlurViewCompleted; 286 | 287 | [realTimeBlur showBlurViewAtView:self]; 288 | } 289 | 290 | - (void)disMissRealTimeBlur { 291 | [[self realTimeBlur] disMiss]; 292 | } 293 | 294 | @end -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | AB5E314B19BDF911003E74F8 /* RootTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AB5E314A19BDF911003E74F8 /* RootTableViewController.m */; }; 11 | AB5E314E19BDF9B4003E74F8 /* InputTextViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AB5E314D19BDF9B4003E74F8 /* InputTextViewController.m */; }; 12 | AB5E315319BE013A003E74F8 /* IMG_0117.JPG in Resources */ = {isa = PBXBuildFile; fileRef = AB5E315219BE013A003E74F8 /* IMG_0117.JPG */; }; 13 | ABA639D619BCB2D9002DC3B2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ABA639D519BCB2D9002DC3B2 /* Foundation.framework */; }; 14 | ABA639D819BCB2D9002DC3B2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ABA639D719BCB2D9002DC3B2 /* CoreGraphics.framework */; }; 15 | ABA639DA19BCB2D9002DC3B2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ABA639D919BCB2D9002DC3B2 /* UIKit.framework */; }; 16 | ABA639E019BCB2D9002DC3B2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = ABA639DE19BCB2D9002DC3B2 /* InfoPlist.strings */; }; 17 | ABA639E219BCB2D9002DC3B2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = ABA639E119BCB2D9002DC3B2 /* main.m */; }; 18 | ABA639E619BCB2D9002DC3B2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = ABA639E519BCB2D9002DC3B2 /* AppDelegate.m */; }; 19 | ABA639E919BCB2D9002DC3B2 /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = ABA639E719BCB2D9002DC3B2 /* Main_iPhone.storyboard */; }; 20 | ABA639EC19BCB2D9002DC3B2 /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = ABA639EA19BCB2D9002DC3B2 /* Main_iPad.storyboard */; }; 21 | ABA639EF19BCB2D9002DC3B2 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = ABA639EE19BCB2D9002DC3B2 /* ViewController.m */; }; 22 | ABA639F119BCB2D9002DC3B2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = ABA639F019BCB2D9002DC3B2 /* Images.xcassets */; }; 23 | ABA639F819BCB2D9002DC3B2 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ABA639F719BCB2D9002DC3B2 /* XCTest.framework */; }; 24 | ABA639F919BCB2D9002DC3B2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ABA639D519BCB2D9002DC3B2 /* Foundation.framework */; }; 25 | ABA639FA19BCB2D9002DC3B2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ABA639D919BCB2D9002DC3B2 /* UIKit.framework */; }; 26 | ABA63A0219BCB2D9002DC3B2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = ABA63A0019BCB2D9002DC3B2 /* InfoPlist.strings */; }; 27 | ABA63A0419BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = ABA63A0319BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests.m */; }; 28 | ABA63A1019BCB32C002DC3B2 /* XHRealTimeBlur.m in Sources */ = {isa = PBXBuildFile; fileRef = ABA63A0F19BCB32C002DC3B2 /* XHRealTimeBlur.m */; }; 29 | /* End PBXBuildFile section */ 30 | 31 | /* Begin PBXContainerItemProxy section */ 32 | ABA639FB19BCB2D9002DC3B2 /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = ABA639CA19BCB2D9002DC3B2 /* Project object */; 35 | proxyType = 1; 36 | remoteGlobalIDString = ABA639D119BCB2D9002DC3B2; 37 | remoteInfo = XHRealTimeBlurExample; 38 | }; 39 | /* End PBXContainerItemProxy section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | AB5E314919BDF911003E74F8 /* RootTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootTableViewController.h; sourceTree = ""; }; 43 | AB5E314A19BDF911003E74F8 /* RootTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RootTableViewController.m; sourceTree = ""; }; 44 | AB5E314C19BDF9B4003E74F8 /* InputTextViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InputTextViewController.h; sourceTree = ""; }; 45 | AB5E314D19BDF9B4003E74F8 /* InputTextViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InputTextViewController.m; sourceTree = ""; }; 46 | AB5E315219BE013A003E74F8 /* IMG_0117.JPG */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = IMG_0117.JPG; sourceTree = ""; }; 47 | ABA639D219BCB2D9002DC3B2 /* XHRealTimeBlurExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XHRealTimeBlurExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | ABA639D519BCB2D9002DC3B2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 49 | ABA639D719BCB2D9002DC3B2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 50 | ABA639D919BCB2D9002DC3B2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 51 | ABA639DD19BCB2D9002DC3B2 /* XHRealTimeBlurExample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "XHRealTimeBlurExample-Info.plist"; sourceTree = ""; }; 52 | ABA639DF19BCB2D9002DC3B2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 53 | ABA639E119BCB2D9002DC3B2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 54 | ABA639E319BCB2D9002DC3B2 /* XHRealTimeBlurExample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XHRealTimeBlurExample-Prefix.pch"; sourceTree = ""; }; 55 | ABA639E419BCB2D9002DC3B2 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 56 | ABA639E519BCB2D9002DC3B2 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 57 | ABA639E819BCB2D9002DC3B2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = ""; }; 58 | ABA639EB19BCB2D9002DC3B2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = ""; }; 59 | ABA639ED19BCB2D9002DC3B2 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 60 | ABA639EE19BCB2D9002DC3B2 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 61 | ABA639F019BCB2D9002DC3B2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 62 | ABA639F619BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XHRealTimeBlurExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | ABA639F719BCB2D9002DC3B2 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 64 | ABA639FF19BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "XHRealTimeBlurExampleTests-Info.plist"; sourceTree = ""; }; 65 | ABA63A0119BCB2D9002DC3B2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 66 | ABA63A0319BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XHRealTimeBlurExampleTests.m; sourceTree = ""; }; 67 | ABA63A0E19BCB32C002DC3B2 /* XHRealTimeBlur.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XHRealTimeBlur.h; sourceTree = ""; }; 68 | ABA63A0F19BCB32C002DC3B2 /* XHRealTimeBlur.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XHRealTimeBlur.m; sourceTree = ""; }; 69 | /* End PBXFileReference section */ 70 | 71 | /* Begin PBXFrameworksBuildPhase section */ 72 | ABA639CF19BCB2D9002DC3B2 /* Frameworks */ = { 73 | isa = PBXFrameworksBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | ABA639D819BCB2D9002DC3B2 /* CoreGraphics.framework in Frameworks */, 77 | ABA639DA19BCB2D9002DC3B2 /* UIKit.framework in Frameworks */, 78 | ABA639D619BCB2D9002DC3B2 /* Foundation.framework in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | ABA639F319BCB2D9002DC3B2 /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | ABA639F819BCB2D9002DC3B2 /* XCTest.framework in Frameworks */, 87 | ABA639FA19BCB2D9002DC3B2 /* UIKit.framework in Frameworks */, 88 | ABA639F919BCB2D9002DC3B2 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | ABA639C919BCB2D9002DC3B2 = { 96 | isa = PBXGroup; 97 | children = ( 98 | ABA63A0D19BCB315002DC3B2 /* XHRealTimeBlur */, 99 | ABA639DB19BCB2D9002DC3B2 /* XHRealTimeBlurExample */, 100 | ABA639FD19BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests */, 101 | ABA639D419BCB2D9002DC3B2 /* Frameworks */, 102 | ABA639D319BCB2D9002DC3B2 /* Products */, 103 | ); 104 | sourceTree = ""; 105 | }; 106 | ABA639D319BCB2D9002DC3B2 /* Products */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | ABA639D219BCB2D9002DC3B2 /* XHRealTimeBlurExample.app */, 110 | ABA639F619BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests.xctest */, 111 | ); 112 | name = Products; 113 | sourceTree = ""; 114 | }; 115 | ABA639D419BCB2D9002DC3B2 /* Frameworks */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | ABA639D519BCB2D9002DC3B2 /* Foundation.framework */, 119 | ABA639D719BCB2D9002DC3B2 /* CoreGraphics.framework */, 120 | ABA639D919BCB2D9002DC3B2 /* UIKit.framework */, 121 | ABA639F719BCB2D9002DC3B2 /* XCTest.framework */, 122 | ); 123 | name = Frameworks; 124 | sourceTree = ""; 125 | }; 126 | ABA639DB19BCB2D9002DC3B2 /* XHRealTimeBlurExample */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | ABA639E419BCB2D9002DC3B2 /* AppDelegate.h */, 130 | ABA639E519BCB2D9002DC3B2 /* AppDelegate.m */, 131 | AB5E314919BDF911003E74F8 /* RootTableViewController.h */, 132 | AB5E314A19BDF911003E74F8 /* RootTableViewController.m */, 133 | ABA639E719BCB2D9002DC3B2 /* Main_iPhone.storyboard */, 134 | ABA639EA19BCB2D9002DC3B2 /* Main_iPad.storyboard */, 135 | ABA639ED19BCB2D9002DC3B2 /* ViewController.h */, 136 | ABA639EE19BCB2D9002DC3B2 /* ViewController.m */, 137 | AB5E314C19BDF9B4003E74F8 /* InputTextViewController.h */, 138 | AB5E314D19BDF9B4003E74F8 /* InputTextViewController.m */, 139 | ABA639F019BCB2D9002DC3B2 /* Images.xcassets */, 140 | ABA639DC19BCB2D9002DC3B2 /* Supporting Files */, 141 | ); 142 | path = XHRealTimeBlurExample; 143 | sourceTree = ""; 144 | }; 145 | ABA639DC19BCB2D9002DC3B2 /* Supporting Files */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | AB5E315219BE013A003E74F8 /* IMG_0117.JPG */, 149 | ABA639DD19BCB2D9002DC3B2 /* XHRealTimeBlurExample-Info.plist */, 150 | ABA639DE19BCB2D9002DC3B2 /* InfoPlist.strings */, 151 | ABA639E119BCB2D9002DC3B2 /* main.m */, 152 | ABA639E319BCB2D9002DC3B2 /* XHRealTimeBlurExample-Prefix.pch */, 153 | ); 154 | name = "Supporting Files"; 155 | sourceTree = ""; 156 | }; 157 | ABA639FD19BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | ABA63A0319BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests.m */, 161 | ABA639FE19BCB2D9002DC3B2 /* Supporting Files */, 162 | ); 163 | path = XHRealTimeBlurExampleTests; 164 | sourceTree = ""; 165 | }; 166 | ABA639FE19BCB2D9002DC3B2 /* Supporting Files */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | ABA639FF19BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests-Info.plist */, 170 | ABA63A0019BCB2D9002DC3B2 /* InfoPlist.strings */, 171 | ); 172 | name = "Supporting Files"; 173 | sourceTree = ""; 174 | }; 175 | ABA63A0D19BCB315002DC3B2 /* XHRealTimeBlur */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | ABA63A0E19BCB32C002DC3B2 /* XHRealTimeBlur.h */, 179 | ABA63A0F19BCB32C002DC3B2 /* XHRealTimeBlur.m */, 180 | ); 181 | name = XHRealTimeBlur; 182 | path = ../XHRealTimeBlur; 183 | sourceTree = ""; 184 | }; 185 | /* End PBXGroup section */ 186 | 187 | /* Begin PBXNativeTarget section */ 188 | ABA639D119BCB2D9002DC3B2 /* XHRealTimeBlurExample */ = { 189 | isa = PBXNativeTarget; 190 | buildConfigurationList = ABA63A0719BCB2D9002DC3B2 /* Build configuration list for PBXNativeTarget "XHRealTimeBlurExample" */; 191 | buildPhases = ( 192 | ABA639CE19BCB2D9002DC3B2 /* Sources */, 193 | ABA639CF19BCB2D9002DC3B2 /* Frameworks */, 194 | ABA639D019BCB2D9002DC3B2 /* Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | ); 200 | name = XHRealTimeBlurExample; 201 | productName = XHRealTimeBlurExample; 202 | productReference = ABA639D219BCB2D9002DC3B2 /* XHRealTimeBlurExample.app */; 203 | productType = "com.apple.product-type.application"; 204 | }; 205 | ABA639F519BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests */ = { 206 | isa = PBXNativeTarget; 207 | buildConfigurationList = ABA63A0A19BCB2D9002DC3B2 /* Build configuration list for PBXNativeTarget "XHRealTimeBlurExampleTests" */; 208 | buildPhases = ( 209 | ABA639F219BCB2D9002DC3B2 /* Sources */, 210 | ABA639F319BCB2D9002DC3B2 /* Frameworks */, 211 | ABA639F419BCB2D9002DC3B2 /* Resources */, 212 | ); 213 | buildRules = ( 214 | ); 215 | dependencies = ( 216 | ABA639FC19BCB2D9002DC3B2 /* PBXTargetDependency */, 217 | ); 218 | name = XHRealTimeBlurExampleTests; 219 | productName = XHRealTimeBlurExampleTests; 220 | productReference = ABA639F619BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests.xctest */; 221 | productType = "com.apple.product-type.bundle.unit-test"; 222 | }; 223 | /* End PBXNativeTarget section */ 224 | 225 | /* Begin PBXProject section */ 226 | ABA639CA19BCB2D9002DC3B2 /* Project object */ = { 227 | isa = PBXProject; 228 | attributes = { 229 | LastUpgradeCheck = 0510; 230 | ORGANIZATIONNAME = "曾宪华 QQ群: (142557668) QQ:543413507 Gmail:xhzengAIB@gmail.com"; 231 | TargetAttributes = { 232 | ABA639F519BCB2D9002DC3B2 = { 233 | TestTargetID = ABA639D119BCB2D9002DC3B2; 234 | }; 235 | }; 236 | }; 237 | buildConfigurationList = ABA639CD19BCB2D9002DC3B2 /* Build configuration list for PBXProject "XHRealTimeBlurExample" */; 238 | compatibilityVersion = "Xcode 3.2"; 239 | developmentRegion = English; 240 | hasScannedForEncodings = 0; 241 | knownRegions = ( 242 | en, 243 | Base, 244 | ); 245 | mainGroup = ABA639C919BCB2D9002DC3B2; 246 | productRefGroup = ABA639D319BCB2D9002DC3B2 /* Products */; 247 | projectDirPath = ""; 248 | projectRoot = ""; 249 | targets = ( 250 | ABA639D119BCB2D9002DC3B2 /* XHRealTimeBlurExample */, 251 | ABA639F519BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests */, 252 | ); 253 | }; 254 | /* End PBXProject section */ 255 | 256 | /* Begin PBXResourcesBuildPhase section */ 257 | ABA639D019BCB2D9002DC3B2 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ABA639EC19BCB2D9002DC3B2 /* Main_iPad.storyboard in Resources */, 262 | ABA639F119BCB2D9002DC3B2 /* Images.xcassets in Resources */, 263 | ABA639E919BCB2D9002DC3B2 /* Main_iPhone.storyboard in Resources */, 264 | AB5E315319BE013A003E74F8 /* IMG_0117.JPG in Resources */, 265 | ABA639E019BCB2D9002DC3B2 /* InfoPlist.strings in Resources */, 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | }; 269 | ABA639F419BCB2D9002DC3B2 /* Resources */ = { 270 | isa = PBXResourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | ABA63A0219BCB2D9002DC3B2 /* InfoPlist.strings in Resources */, 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | }; 277 | /* End PBXResourcesBuildPhase section */ 278 | 279 | /* Begin PBXSourcesBuildPhase section */ 280 | ABA639CE19BCB2D9002DC3B2 /* Sources */ = { 281 | isa = PBXSourcesBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | AB5E314B19BDF911003E74F8 /* RootTableViewController.m in Sources */, 285 | ABA639EF19BCB2D9002DC3B2 /* ViewController.m in Sources */, 286 | AB5E314E19BDF9B4003E74F8 /* InputTextViewController.m in Sources */, 287 | ABA639E619BCB2D9002DC3B2 /* AppDelegate.m in Sources */, 288 | ABA639E219BCB2D9002DC3B2 /* main.m in Sources */, 289 | ABA63A1019BCB32C002DC3B2 /* XHRealTimeBlur.m in Sources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | ABA639F219BCB2D9002DC3B2 /* Sources */ = { 294 | isa = PBXSourcesBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | ABA63A0419BCB2D9002DC3B2 /* XHRealTimeBlurExampleTests.m in Sources */, 298 | ); 299 | runOnlyForDeploymentPostprocessing = 0; 300 | }; 301 | /* End PBXSourcesBuildPhase section */ 302 | 303 | /* Begin PBXTargetDependency section */ 304 | ABA639FC19BCB2D9002DC3B2 /* PBXTargetDependency */ = { 305 | isa = PBXTargetDependency; 306 | target = ABA639D119BCB2D9002DC3B2 /* XHRealTimeBlurExample */; 307 | targetProxy = ABA639FB19BCB2D9002DC3B2 /* PBXContainerItemProxy */; 308 | }; 309 | /* End PBXTargetDependency section */ 310 | 311 | /* Begin PBXVariantGroup section */ 312 | ABA639DE19BCB2D9002DC3B2 /* InfoPlist.strings */ = { 313 | isa = PBXVariantGroup; 314 | children = ( 315 | ABA639DF19BCB2D9002DC3B2 /* en */, 316 | ); 317 | name = InfoPlist.strings; 318 | sourceTree = ""; 319 | }; 320 | ABA639E719BCB2D9002DC3B2 /* Main_iPhone.storyboard */ = { 321 | isa = PBXVariantGroup; 322 | children = ( 323 | ABA639E819BCB2D9002DC3B2 /* Base */, 324 | ); 325 | name = Main_iPhone.storyboard; 326 | sourceTree = ""; 327 | }; 328 | ABA639EA19BCB2D9002DC3B2 /* Main_iPad.storyboard */ = { 329 | isa = PBXVariantGroup; 330 | children = ( 331 | ABA639EB19BCB2D9002DC3B2 /* Base */, 332 | ); 333 | name = Main_iPad.storyboard; 334 | sourceTree = ""; 335 | }; 336 | ABA63A0019BCB2D9002DC3B2 /* InfoPlist.strings */ = { 337 | isa = PBXVariantGroup; 338 | children = ( 339 | ABA63A0119BCB2D9002DC3B2 /* en */, 340 | ); 341 | name = InfoPlist.strings; 342 | sourceTree = ""; 343 | }; 344 | /* End PBXVariantGroup section */ 345 | 346 | /* Begin XCBuildConfiguration section */ 347 | ABA63A0519BCB2D9002DC3B2 /* Debug */ = { 348 | isa = XCBuildConfiguration; 349 | buildSettings = { 350 | ALWAYS_SEARCH_USER_PATHS = NO; 351 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 352 | CLANG_CXX_LIBRARY = "libc++"; 353 | CLANG_ENABLE_MODULES = YES; 354 | CLANG_ENABLE_OBJC_ARC = YES; 355 | CLANG_WARN_BOOL_CONVERSION = YES; 356 | CLANG_WARN_CONSTANT_CONVERSION = YES; 357 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 358 | CLANG_WARN_EMPTY_BODY = YES; 359 | CLANG_WARN_ENUM_CONVERSION = YES; 360 | CLANG_WARN_INT_CONVERSION = YES; 361 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 364 | COPY_PHASE_STRIP = NO; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_DYNAMIC_NO_PIC = NO; 367 | GCC_OPTIMIZATION_LEVEL = 0; 368 | GCC_PREPROCESSOR_DEFINITIONS = ( 369 | "DEBUG=1", 370 | "$(inherited)", 371 | ); 372 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 380 | ONLY_ACTIVE_ARCH = YES; 381 | SDKROOT = iphoneos; 382 | TARGETED_DEVICE_FAMILY = "1,2"; 383 | }; 384 | name = Debug; 385 | }; 386 | ABA63A0619BCB2D9002DC3B2 /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | buildSettings = { 389 | ALWAYS_SEARCH_USER_PATHS = NO; 390 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 391 | CLANG_CXX_LIBRARY = "libc++"; 392 | CLANG_ENABLE_MODULES = YES; 393 | CLANG_ENABLE_OBJC_ARC = YES; 394 | CLANG_WARN_BOOL_CONVERSION = YES; 395 | CLANG_WARN_CONSTANT_CONVERSION = YES; 396 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 397 | CLANG_WARN_EMPTY_BODY = YES; 398 | CLANG_WARN_ENUM_CONVERSION = YES; 399 | CLANG_WARN_INT_CONVERSION = YES; 400 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 403 | COPY_PHASE_STRIP = YES; 404 | ENABLE_NS_ASSERTIONS = NO; 405 | GCC_C_LANGUAGE_STANDARD = gnu99; 406 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 407 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 408 | GCC_WARN_UNDECLARED_SELECTOR = YES; 409 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 410 | GCC_WARN_UNUSED_FUNCTION = YES; 411 | GCC_WARN_UNUSED_VARIABLE = YES; 412 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 413 | SDKROOT = iphoneos; 414 | TARGETED_DEVICE_FAMILY = "1,2"; 415 | VALIDATE_PRODUCT = YES; 416 | }; 417 | name = Release; 418 | }; 419 | ABA63A0819BCB2D9002DC3B2 /* Debug */ = { 420 | isa = XCBuildConfiguration; 421 | buildSettings = { 422 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 423 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 424 | CODE_SIGN_IDENTITY = "iPhone Developer"; 425 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 426 | GCC_PREFIX_HEADER = "XHRealTimeBlurExample/XHRealTimeBlurExample-Prefix.pch"; 427 | INFOPLIST_FILE = "XHRealTimeBlurExample/XHRealTimeBlurExample-Info.plist"; 428 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 429 | PRODUCT_NAME = "$(TARGET_NAME)"; 430 | WRAPPER_EXTENSION = app; 431 | }; 432 | name = Debug; 433 | }; 434 | ABA63A0919BCB2D9002DC3B2 /* Release */ = { 435 | isa = XCBuildConfiguration; 436 | buildSettings = { 437 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 438 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 439 | CODE_SIGN_IDENTITY = "iPhone Developer"; 440 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 441 | GCC_PREFIX_HEADER = "XHRealTimeBlurExample/XHRealTimeBlurExample-Prefix.pch"; 442 | INFOPLIST_FILE = "XHRealTimeBlurExample/XHRealTimeBlurExample-Info.plist"; 443 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 444 | PRODUCT_NAME = "$(TARGET_NAME)"; 445 | WRAPPER_EXTENSION = app; 446 | }; 447 | name = Release; 448 | }; 449 | ABA63A0B19BCB2D9002DC3B2 /* Debug */ = { 450 | isa = XCBuildConfiguration; 451 | buildSettings = { 452 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/XHRealTimeBlurExample.app/XHRealTimeBlurExample"; 453 | FRAMEWORK_SEARCH_PATHS = ( 454 | "$(SDKROOT)/Developer/Library/Frameworks", 455 | "$(inherited)", 456 | "$(DEVELOPER_FRAMEWORKS_DIR)", 457 | ); 458 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 459 | GCC_PREFIX_HEADER = "XHRealTimeBlurExample/XHRealTimeBlurExample-Prefix.pch"; 460 | GCC_PREPROCESSOR_DEFINITIONS = ( 461 | "DEBUG=1", 462 | "$(inherited)", 463 | ); 464 | INFOPLIST_FILE = "XHRealTimeBlurExampleTests/XHRealTimeBlurExampleTests-Info.plist"; 465 | PRODUCT_NAME = "$(TARGET_NAME)"; 466 | TEST_HOST = "$(BUNDLE_LOADER)"; 467 | WRAPPER_EXTENSION = xctest; 468 | }; 469 | name = Debug; 470 | }; 471 | ABA63A0C19BCB2D9002DC3B2 /* Release */ = { 472 | isa = XCBuildConfiguration; 473 | buildSettings = { 474 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/XHRealTimeBlurExample.app/XHRealTimeBlurExample"; 475 | FRAMEWORK_SEARCH_PATHS = ( 476 | "$(SDKROOT)/Developer/Library/Frameworks", 477 | "$(inherited)", 478 | "$(DEVELOPER_FRAMEWORKS_DIR)", 479 | ); 480 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 481 | GCC_PREFIX_HEADER = "XHRealTimeBlurExample/XHRealTimeBlurExample-Prefix.pch"; 482 | INFOPLIST_FILE = "XHRealTimeBlurExampleTests/XHRealTimeBlurExampleTests-Info.plist"; 483 | PRODUCT_NAME = "$(TARGET_NAME)"; 484 | TEST_HOST = "$(BUNDLE_LOADER)"; 485 | WRAPPER_EXTENSION = xctest; 486 | }; 487 | name = Release; 488 | }; 489 | /* End XCBuildConfiguration section */ 490 | 491 | /* Begin XCConfigurationList section */ 492 | ABA639CD19BCB2D9002DC3B2 /* Build configuration list for PBXProject "XHRealTimeBlurExample" */ = { 493 | isa = XCConfigurationList; 494 | buildConfigurations = ( 495 | ABA63A0519BCB2D9002DC3B2 /* Debug */, 496 | ABA63A0619BCB2D9002DC3B2 /* Release */, 497 | ); 498 | defaultConfigurationIsVisible = 0; 499 | defaultConfigurationName = Release; 500 | }; 501 | ABA63A0719BCB2D9002DC3B2 /* Build configuration list for PBXNativeTarget "XHRealTimeBlurExample" */ = { 502 | isa = XCConfigurationList; 503 | buildConfigurations = ( 504 | ABA63A0819BCB2D9002DC3B2 /* Debug */, 505 | ABA63A0919BCB2D9002DC3B2 /* Release */, 506 | ); 507 | defaultConfigurationIsVisible = 0; 508 | defaultConfigurationName = Release; 509 | }; 510 | ABA63A0A19BCB2D9002DC3B2 /* Build configuration list for PBXNativeTarget "XHRealTimeBlurExampleTests" */ = { 511 | isa = XCConfigurationList; 512 | buildConfigurations = ( 513 | ABA63A0B19BCB2D9002DC3B2 /* Debug */, 514 | ABA63A0C19BCB2D9002DC3B2 /* Release */, 515 | ); 516 | defaultConfigurationIsVisible = 0; 517 | defaultConfigurationName = Release; 518 | }; 519 | /* End XCConfigurationList section */ 520 | }; 521 | rootObject = ABA639CA19BCB2D9002DC3B2 /* Project object */; 522 | } 523 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj/project.xcworkspace/xcshareddata/XHRealTimeBlurExample.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | D7D7C412-B02C-4926-BDE2-08D76CCB71C0 9 | IDESourceControlProjectName 10 | XHRealTimeBlurExample 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | AD1B6BA6334A34E98DC486A0E17C27B36862E048 14 | https://github.com/xhzengAIB/RealTimeBlur.git 15 | 16 | IDESourceControlProjectPath 17 | XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | AD1B6BA6334A34E98DC486A0E17C27B36862E048 21 | ../../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/xhzengAIB/RealTimeBlur.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | AD1B6BA6334A34E98DC486A0E17C27B36862E048 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | AD1B6BA6334A34E98DC486A0E17C27B36862E048 36 | IDESourceControlWCCName 37 | RealTimeBlur 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj/project.xcworkspace/xcuserdata/JackMacbook.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xhzengAIB/XHRealTimeBlur/399611fdd3da840007039bfe2cf911e75d244990/XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj/project.xcworkspace/xcuserdata/JackMacbook.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj/xcshareddata/xcschemes/XHRealTimeBlurExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj/xcuserdata/JackMacbook.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj/xcuserdata/JackMacbook.xcuserdatad/xcschemes/XHRealTimeBlurExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample.xcodeproj/xcuserdata/JackMacbook.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | XHRealTimeBlurExample.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | ABA639D119BCB2D9002DC3B2 16 | 17 | primary 18 | 19 | 20 | ABA639F519BCB2D9002DC3B2 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-7. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-7. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @implementation AppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/Base.lproj/Main_iPad.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/Base.lproj/Main_iPhone.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/IMG_0117.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xhzengAIB/XHRealTimeBlur/399611fdd3da840007039bfe2cf911e75d244990/XHRealTimeBlurExample/XHRealTimeBlurExample/IMG_0117.JPG -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/InputTextViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // InputTextViewController.h 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-8. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface InputTextViewController : UIViewController 12 | 13 | - (IBAction)showInputTextView:(id)sender; 14 | @property (weak, nonatomic) IBOutlet UITextField *textField; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/InputTextViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // InputTextViewController.m 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-8. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import "InputTextViewController.h" 10 | 11 | #import "XHRealTimeBlur.h" 12 | 13 | @interface InputTextViewController () 14 | 15 | @property (nonatomic, strong) UITextView *textView; 16 | 17 | @property (nonatomic, strong) XHRealTimeBlur *realTimeBlur; 18 | 19 | @end 20 | 21 | @implementation InputTextViewController 22 | 23 | - (UITextView *)textView { 24 | if (!_textView) { 25 | _textView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 60)]; 26 | _textView.backgroundColor = [UIColor colorWithWhite:1.000 alpha:0.950]; 27 | _textView.text = @"Click Here Input"; 28 | _textView.font = [UIFont systemFontOfSize:25]; 29 | } 30 | return _textView; 31 | } 32 | 33 | - (XHRealTimeBlur *)realTimeBlur { 34 | if (!_realTimeBlur) { 35 | _realTimeBlur = [[XHRealTimeBlur alloc] initWithFrame:self.view.bounds]; 36 | _realTimeBlur.alpha = 0.0; 37 | [self.view addSubview:_realTimeBlur]; 38 | } 39 | return _realTimeBlur; 40 | } 41 | 42 | - (void)viewDidLoad 43 | { 44 | [super viewDidLoad]; 45 | // Do any additional setup after loading the view. 46 | self.title = @"Input"; 47 | 48 | self.textField.inputAccessoryView = self.textView; 49 | 50 | __weak InputTextViewController *weakSelf = self; 51 | [[NSNotificationCenter defaultCenter] addObserverForName:UIKeyboardWillHideNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) { 52 | if (weakSelf) { 53 | __strong InputTextViewController *strongSelf = weakSelf; 54 | [strongSelf.view disMissRealTimeBlur]; 55 | } 56 | }]; 57 | [[NSNotificationCenter defaultCenter] addObserverForName:UIKeyboardWillShowNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) { 58 | if (weakSelf) { 59 | __strong InputTextViewController *strongSelf = weakSelf; 60 | [strongSelf.view showRealTimeBlurWithBlurStyle:XHBlurStyleTranslucent]; 61 | } 62 | }]; 63 | } 64 | 65 | - (void)dealloc { 66 | [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillHideNotification object:nil]; 67 | [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil]; 68 | } 69 | 70 | - (void)didReceiveMemoryWarning 71 | { 72 | [super didReceiveMemoryWarning]; 73 | // Dispose of any resources that can be recreated. 74 | } 75 | 76 | - (IBAction)showInputTextView:(id)sender { 77 | [self.textField becomeFirstResponder]; 78 | } 79 | 80 | - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { 81 | [self.textView resignFirstResponder]; 82 | [self.textField resignFirstResponder]; 83 | } 84 | 85 | @end 86 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/RootTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // RootTableViewController.h 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-8. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface RootTableViewController : UITableViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/RootTableViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // RootTableViewController.m 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-8. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import "RootTableViewController.h" 10 | 11 | @interface RootTableViewController () 12 | 13 | @end 14 | 15 | @implementation RootTableViewController 16 | 17 | - (id)initWithStyle:(UITableViewStyle)style 18 | { 19 | self = [super initWithStyle:style]; 20 | if (self) { 21 | // Custom initialization 22 | } 23 | return self; 24 | } 25 | 26 | - (void)viewDidLoad 27 | { 28 | [super viewDidLoad]; 29 | 30 | // Uncomment the following line to preserve selection between presentations. 31 | // self.clearsSelectionOnViewWillAppear = NO; 32 | 33 | // Uncomment the following line to display an Edit button in the navigation bar for this view controller. 34 | // self.navigationItem.rightBarButtonItem = self.editButtonItem; 35 | } 36 | 37 | - (void)didReceiveMemoryWarning 38 | { 39 | [super didReceiveMemoryWarning]; 40 | // Dispose of any resources that can be recreated. 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-7. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | @property (weak, nonatomic) IBOutlet UIWebView *webView; 14 | - (IBAction)TouchThere:(id)sender; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-7. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | #import "XHRealTimeBlur.h" 12 | 13 | @interface ViewController () 14 | 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | - (void)viewDidLoad 20 | { 21 | [super viewDidLoad]; 22 | // Do any additional setup after loading the view, typically from a nib. 23 | NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://store.apple.com"]]; 24 | [self.webView loadRequest:request]; 25 | } 26 | 27 | 28 | - (void)didReceiveMemoryWarning 29 | { 30 | [super didReceiveMemoryWarning]; 31 | // Dispose of any resources that can be recreated. 32 | } 33 | 34 | - (IBAction)TouchThere:(id)sender { 35 | 36 | self.view.willShowBlurViewcomplted = ^() { 37 | NSLog(@"willShow"); 38 | }; 39 | 40 | self.view.didShowBlurViewcompleted = ^(BOOL finished) { 41 | NSLog(@"didShow"); 42 | }; 43 | 44 | self.view.willDismissBlurViewCompleted = ^() { 45 | NSLog(@"willDismiss"); 46 | }; 47 | self.view.didDismissBlurViewCompleted = ^(BOOL finished) { 48 | NSLog(@"didDismiss"); 49 | }; 50 | [self.view showRealTimeBlurWithBlurStyle:XHBlurStyleBlackTranslucent hasTapGestureEnable:YES]; 51 | } 52 | @end 53 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/XHRealTimeBlurExample-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.HUAJIE.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main_iPhone 29 | UIMainStoryboardFile~ipad 30 | Main_iPad 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/XHRealTimeBlurExample-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // XHRealTimeBlurExample 4 | // 5 | // Created by 曾 宪华 on 14-9-7. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "AppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExampleTests/XHRealTimeBlurExampleTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.HUAJIE.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExampleTests/XHRealTimeBlurExampleTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // XHRealTimeBlurExampleTests.m 3 | // XHRealTimeBlurExampleTests 4 | // 5 | // Created by 曾 宪华 on 14-9-7. 6 | // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XHRealTimeBlurExampleTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation XHRealTimeBlurExampleTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /XHRealTimeBlurExample/XHRealTimeBlurExampleTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | --------------------------------------------------------------------------------