├── .gitignore ├── DemoApp ├── AppDelegate.h ├── AppDelegate.m ├── Default-568h@2x.png ├── Default.png ├── Default@2x.png ├── DemoApp-Info.plist ├── DemoApp-Prefix.pch ├── Main.storyboard ├── ViewController.h ├── ViewController.m ├── en.lproj │ └── InfoPlist.strings └── main.m ├── Podfile ├── README.md ├── UIWebView+Progress.podspec ├── UIWebView+Progress.xcodeproj └── project.pbxproj ├── UIWebView+Progress.xcworkspace └── contents.xcworkspacedata └── UIWebView+Progress ├── UIWebView+Progress-Prefix.pch ├── UIWebView+Progress.h └── UIWebView+Progress.m /.gitignore: -------------------------------------------------------------------------------- 1 | Pods/ 2 | Podfile.lock 3 | 4 | 5 | -------------------------------------------------------------------------------- /DemoApp/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // WebViewSample 4 | // 5 | // Created by 浅野 慧 on 4/20/13. 6 | // Copyright (c) 2013 Satoshi Asano. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /DemoApp/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // WebViewSample 4 | // 5 | // Created by 浅野 慧 on 4/20/13. 6 | // Copyright (c) 2013 Satoshi Asano. 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 | -------------------------------------------------------------------------------- /DemoApp/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ishkawa/UIWebView-Progress/74b8daac86fb2f61fc99f83204e96a43dd6ac2ba/DemoApp/Default-568h@2x.png -------------------------------------------------------------------------------- /DemoApp/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ishkawa/UIWebView-Progress/74b8daac86fb2f61fc99f83204e96a43dd6ac2ba/DemoApp/Default.png -------------------------------------------------------------------------------- /DemoApp/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ishkawa/UIWebView-Progress/74b8daac86fb2f61fc99f83204e96a43dd6ac2ba/DemoApp/Default@2x.png -------------------------------------------------------------------------------- /DemoApp/DemoApp-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | -.${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 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /DemoApp/DemoApp-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'DemoApp' target in the 'DemoApp' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iOS SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /DemoApp/Main.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 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 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 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /DemoApp/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // WebViewDemo 4 | // 5 | // Created by Satoshi Asano on 4/20/13. 6 | // Copyright (c) 2013 Satoshi Asano. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "UIWebView+Progress.h" 11 | 12 | @interface ViewController : UIViewController 13 | @end 14 | -------------------------------------------------------------------------------- /DemoApp/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // WebViewDemo 4 | // 5 | // Created by Satoshi Asano on 4/20/13. 6 | // Copyright (c) 2013 Satoshi Asano. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @implementation ViewController 12 | { 13 | IBOutlet __weak UIWebView *_webView; 14 | IBOutlet __weak UIProgressView *_progressView; 15 | } 16 | 17 | - (void)viewDidLoad 18 | { 19 | [super viewDidLoad]; 20 | 21 | _webView.delegate = self; 22 | _webView.progressDelegate = self; 23 | 24 | [self loadGoogle]; 25 | } 26 | 27 | - (IBAction)searchButtonPushed:(id)sender 28 | { 29 | [self loadGoogle]; 30 | } 31 | 32 | - (IBAction)reloadButtonPushed:(id)sender 33 | { 34 | [_webView reload]; 35 | } 36 | 37 | -(void)loadGoogle 38 | { 39 | NSURLRequest *req = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"http://google.com/"]]; 40 | [_webView loadRequest:req]; 41 | } 42 | 43 | #pragma mark - NJKWebViewProgressDelegate 44 | -(void)webViewProgress:(NJKWebViewProgress *)webViewProgress updateProgress:(float)progress 45 | { 46 | if (progress == 0.0) { 47 | [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; 48 | _progressView.progress = 0; 49 | [UIView animateWithDuration:0.27 animations:^{ 50 | _progressView.alpha = 1.0; 51 | }]; 52 | } 53 | if (progress == 1.0) { 54 | [UIApplication sharedApplication].networkActivityIndicatorVisible = NO; 55 | [UIView animateWithDuration:0.27 delay:progress - _progressView.progress options:0 animations:^{ 56 | _progressView.alpha = 0.0; 57 | } completion:nil]; 58 | } 59 | 60 | [_progressView setProgress:progress animated:NO]; 61 | } 62 | 63 | @end 64 | -------------------------------------------------------------------------------- /DemoApp/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /DemoApp/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DemoApp 4 | // 5 | // Created by Yosuke Ishikawa on 2013/05/25. 6 | // Copyright (c) 2013年 Yosuke Ishikawa. 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 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '5.0' 2 | 3 | pod 'ISMethodSwizzling', '~> 0.0.2' 4 | pod 'NJKWebViewProgress', '~> 0.2.3' 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | integrates [NJKWebViewProgress](https://github.com/ninjinkun/NJKWebViewProgress) into UIWebView. 2 | 3 | ## Usage 4 | 5 | ```objectivec 6 | - (void)viewDidLoad 7 | { 8 | [super viewDidLoad]; 9 | 10 | self.webView.delegate = self; 11 | self.webView.progressDelegate = self; 12 | } 13 | 14 | #pragma mark - NJKWebViewProgressDelegate 15 | 16 | -(void)webViewProgress:(NJKWebViewProgress *)webViewProgress updateProgress:(float)progress 17 | { 18 | self.progressView = progress; 19 | } 20 | ``` 21 | 22 | ## Installing 23 | 24 | ### CocoaPods 25 | 26 | If you use CocoaPods, you can install UIWebView+Progress by inserting config below. 27 | 28 | ``` 29 | pod 'UIWebView+Progress', :git => 'git@github.com:ishkawa/UIWebView-Progress.git' 30 | ``` 31 | 32 | ### Without CocoaPods 33 | 34 | - Install [NJKWebViewProgress](https://github.com/ninjinkun/NJKWebViewProgress) and [ISMethodSwizzling](https://github.com/ishkawa/ISMethodSwizzling). 35 | - Add files under `UIWebView+Progress/` to your Xcode project. 36 | 37 | ## License 38 | 39 | Copyright (c) 2013 Yosuke Ishikawa 40 | 41 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 42 | 43 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 44 | 45 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 46 | -------------------------------------------------------------------------------- /UIWebView+Progress.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "UIWebView+Progress" 3 | s.version = "0.0.3" 4 | s.summary = "integrates NJKWebViewProgress into UIWebView." 5 | s.homepage = "https://github.com/ishkawa/UIWebView-Progress" 6 | s.author = { "Yosuke Ishikawa" => "y@ishkawa.org" } 7 | s.source = { :git => "https://github.com/ishkawa/UIWebView-Progress.git", :tag => "0.0.3" } 8 | s.platform = :ios, '5.0' 9 | s.requires_arc = true 10 | s.source_files = 'UIWebView+Progress/**/*.{h,m}' 11 | s.license = { 12 | :type => 'MIT', 13 | :text => <<-LICENSE 14 | Copyright (c) 2013 Yosuke Ishikawa 15 | 16 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 17 | 18 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | LICENSE 22 | } 23 | s.dependency 'NJKWebViewProgress', '~> 0.2.3' 24 | s.dependency 'ISMethodSwizzling', '~> 0.0.2' 25 | end 26 | -------------------------------------------------------------------------------- /UIWebView+Progress.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7F64FA52175108FB0072E87A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F94293B1750FF7C0044E689 /* UIKit.framework */; }; 11 | 7F64FA53175108FB0072E87A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F94292A1750FF390044E689 /* Foundation.framework */; }; 12 | 7F64FA55175108FB0072E87A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F64FA54175108FB0072E87A /* CoreGraphics.framework */; }; 13 | 7F64FA5B175108FB0072E87A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 7F64FA59175108FB0072E87A /* InfoPlist.strings */; }; 14 | 7F64FA5D175108FB0072E87A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F64FA5C175108FB0072E87A /* main.m */; }; 15 | 7F64FA61175108FB0072E87A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F64FA60175108FB0072E87A /* AppDelegate.m */; }; 16 | 7F64FA63175108FB0072E87A /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 7F64FA62175108FB0072E87A /* Default.png */; }; 17 | 7F64FA65175108FB0072E87A /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7F64FA64175108FB0072E87A /* Default@2x.png */; }; 18 | 7F64FA67175108FB0072E87A /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7F64FA66175108FB0072E87A /* Default-568h@2x.png */; }; 19 | 7F64FA6D175109140072E87A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F64FA6C175109140072E87A /* ViewController.m */; }; 20 | 7F64FA6F175109680072E87A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7F64FA6E175109680072E87A /* Main.storyboard */; }; 21 | 7F64FA72175109DD0072E87A /* libUIWebView+Progress.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F9429271750FF390044E689 /* libUIWebView+Progress.a */; }; 22 | 7F94292B1750FF390044E689 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F94292A1750FF390044E689 /* Foundation.framework */; }; 23 | 7F94293A1750FF6A0044E689 /* UIWebView+Progress.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F9429391750FF6A0044E689 /* UIWebView+Progress.m */; }; 24 | 7F94293C1750FF7C0044E689 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F94293B1750FF7C0044E689 /* UIKit.framework */; }; 25 | D5267E0CCFF14FBE826E27D6 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A93056B77924AB8877472D0 /* libPods.a */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 7F64FA70175109D80072E87A /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 7F94291F1750FF390044E689 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 7F9429261750FF390044E689; 34 | remoteInfo = "UIWebView+Progress"; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXCopyFilesBuildPhase section */ 39 | 7F9429251750FF390044E689 /* CopyFiles */ = { 40 | isa = PBXCopyFilesBuildPhase; 41 | buildActionMask = 2147483647; 42 | dstPath = "include/${PRODUCT_NAME}"; 43 | dstSubfolderSpec = 16; 44 | files = ( 45 | ); 46 | runOnlyForDeploymentPostprocessing = 0; 47 | }; 48 | /* End PBXCopyFilesBuildPhase section */ 49 | 50 | /* Begin PBXFileReference section */ 51 | 7F64FA51175108FB0072E87A /* DemoApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DemoApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 7F64FA54175108FB0072E87A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 53 | 7F64FA58175108FB0072E87A /* DemoApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DemoApp-Info.plist"; sourceTree = ""; }; 54 | 7F64FA5A175108FB0072E87A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 55 | 7F64FA5C175108FB0072E87A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 56 | 7F64FA5E175108FB0072E87A /* DemoApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DemoApp-Prefix.pch"; sourceTree = ""; }; 57 | 7F64FA5F175108FB0072E87A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 58 | 7F64FA60175108FB0072E87A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 59 | 7F64FA62175108FB0072E87A /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; 60 | 7F64FA64175108FB0072E87A /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; 61 | 7F64FA66175108FB0072E87A /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 62 | 7F64FA6B175109140072E87A /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 63 | 7F64FA6C175109140072E87A /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 64 | 7F64FA6E175109680072E87A /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 65 | 7F9429271750FF390044E689 /* libUIWebView+Progress.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libUIWebView+Progress.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | 7F94292A1750FF390044E689 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 67 | 7F94292E1750FF390044E689 /* UIWebView+Progress-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIWebView+Progress-Prefix.pch"; sourceTree = ""; }; 68 | 7F9429381750FF6A0044E689 /* UIWebView+Progress.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIWebView+Progress.h"; sourceTree = ""; }; 69 | 7F9429391750FF6A0044E689 /* UIWebView+Progress.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIWebView+Progress.m"; sourceTree = ""; }; 70 | 7F94293B1750FF7C0044E689 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 71 | 9A93056B77924AB8877472D0 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 72 | EC3ACEE29C1043E4978409E9 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = SOURCE_ROOT; }; 73 | /* End PBXFileReference section */ 74 | 75 | /* Begin PBXFrameworksBuildPhase section */ 76 | 7F64FA4E175108FB0072E87A /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | 7F64FA72175109DD0072E87A /* libUIWebView+Progress.a in Frameworks */, 81 | 7F64FA52175108FB0072E87A /* UIKit.framework in Frameworks */, 82 | 7F64FA53175108FB0072E87A /* Foundation.framework in Frameworks */, 83 | 7F64FA55175108FB0072E87A /* CoreGraphics.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | 7F9429241750FF390044E689 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | 7F94293C1750FF7C0044E689 /* UIKit.framework in Frameworks */, 92 | 7F94292B1750FF390044E689 /* Foundation.framework in Frameworks */, 93 | D5267E0CCFF14FBE826E27D6 /* libPods.a in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | /* End PBXFrameworksBuildPhase section */ 98 | 99 | /* Begin PBXGroup section */ 100 | 7F64FA56175108FB0072E87A /* DemoApp */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 7F64FA6E175109680072E87A /* Main.storyboard */, 104 | 7F64FA5F175108FB0072E87A /* AppDelegate.h */, 105 | 7F64FA60175108FB0072E87A /* AppDelegate.m */, 106 | 7F64FA6B175109140072E87A /* ViewController.h */, 107 | 7F64FA6C175109140072E87A /* ViewController.m */, 108 | 7F64FA57175108FB0072E87A /* Supporting Files */, 109 | ); 110 | path = DemoApp; 111 | sourceTree = ""; 112 | }; 113 | 7F64FA57175108FB0072E87A /* Supporting Files */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 7F64FA58175108FB0072E87A /* DemoApp-Info.plist */, 117 | 7F64FA59175108FB0072E87A /* InfoPlist.strings */, 118 | 7F64FA5C175108FB0072E87A /* main.m */, 119 | 7F64FA5E175108FB0072E87A /* DemoApp-Prefix.pch */, 120 | 7F64FA62175108FB0072E87A /* Default.png */, 121 | 7F64FA64175108FB0072E87A /* Default@2x.png */, 122 | 7F64FA66175108FB0072E87A /* Default-568h@2x.png */, 123 | ); 124 | name = "Supporting Files"; 125 | sourceTree = ""; 126 | }; 127 | 7F94291E1750FF390044E689 = { 128 | isa = PBXGroup; 129 | children = ( 130 | 7F94292C1750FF390044E689 /* UIWebView+Progress */, 131 | 7F64FA56175108FB0072E87A /* DemoApp */, 132 | 7F9429291750FF390044E689 /* Frameworks */, 133 | 7F9429281750FF390044E689 /* Products */, 134 | EC3ACEE29C1043E4978409E9 /* Pods.xcconfig */, 135 | ); 136 | sourceTree = ""; 137 | }; 138 | 7F9429281750FF390044E689 /* Products */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 7F9429271750FF390044E689 /* libUIWebView+Progress.a */, 142 | 7F64FA51175108FB0072E87A /* DemoApp.app */, 143 | ); 144 | name = Products; 145 | sourceTree = ""; 146 | }; 147 | 7F9429291750FF390044E689 /* Frameworks */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 7F94293B1750FF7C0044E689 /* UIKit.framework */, 151 | 7F94292A1750FF390044E689 /* Foundation.framework */, 152 | 9A93056B77924AB8877472D0 /* libPods.a */, 153 | 7F64FA54175108FB0072E87A /* CoreGraphics.framework */, 154 | ); 155 | name = Frameworks; 156 | sourceTree = ""; 157 | }; 158 | 7F94292C1750FF390044E689 /* UIWebView+Progress */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 7F9429381750FF6A0044E689 /* UIWebView+Progress.h */, 162 | 7F9429391750FF6A0044E689 /* UIWebView+Progress.m */, 163 | 7F94292D1750FF390044E689 /* Supporting Files */, 164 | ); 165 | path = "UIWebView+Progress"; 166 | sourceTree = ""; 167 | }; 168 | 7F94292D1750FF390044E689 /* Supporting Files */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 7F94292E1750FF390044E689 /* UIWebView+Progress-Prefix.pch */, 172 | ); 173 | name = "Supporting Files"; 174 | sourceTree = ""; 175 | }; 176 | /* End PBXGroup section */ 177 | 178 | /* Begin PBXNativeTarget section */ 179 | 7F64FA50175108FB0072E87A /* DemoApp */ = { 180 | isa = PBXNativeTarget; 181 | buildConfigurationList = 7F64FA6A175108FB0072E87A /* Build configuration list for PBXNativeTarget "DemoApp" */; 182 | buildPhases = ( 183 | 7F64FA4D175108FB0072E87A /* Sources */, 184 | 7F64FA4E175108FB0072E87A /* Frameworks */, 185 | 7F64FA4F175108FB0072E87A /* Resources */, 186 | ); 187 | buildRules = ( 188 | ); 189 | dependencies = ( 190 | 7F64FA71175109D80072E87A /* PBXTargetDependency */, 191 | ); 192 | name = DemoApp; 193 | productName = DemoApp; 194 | productReference = 7F64FA51175108FB0072E87A /* DemoApp.app */; 195 | productType = "com.apple.product-type.application"; 196 | }; 197 | 7F9429261750FF390044E689 /* UIWebView+Progress */ = { 198 | isa = PBXNativeTarget; 199 | buildConfigurationList = 7F9429351750FF390044E689 /* Build configuration list for PBXNativeTarget "UIWebView+Progress" */; 200 | buildPhases = ( 201 | 05F2BDF030A741E7BAA2C080 /* Check Pods Manifest.lock */, 202 | 7F9429231750FF390044E689 /* Sources */, 203 | 7F9429241750FF390044E689 /* Frameworks */, 204 | 7F9429251750FF390044E689 /* CopyFiles */, 205 | F538D48DFFE543EEBC37C2B0 /* Copy Pods Resources */, 206 | ); 207 | buildRules = ( 208 | ); 209 | dependencies = ( 210 | ); 211 | name = "UIWebView+Progress"; 212 | productName = "UIWebView+Progress"; 213 | productReference = 7F9429271750FF390044E689 /* libUIWebView+Progress.a */; 214 | productType = "com.apple.product-type.library.static"; 215 | }; 216 | /* End PBXNativeTarget section */ 217 | 218 | /* Begin PBXProject section */ 219 | 7F94291F1750FF390044E689 /* Project object */ = { 220 | isa = PBXProject; 221 | attributes = { 222 | LastUpgradeCheck = 0460; 223 | ORGANIZATIONNAME = "Yosuke Ishikawa"; 224 | }; 225 | buildConfigurationList = 7F9429221750FF390044E689 /* Build configuration list for PBXProject "UIWebView+Progress" */; 226 | compatibilityVersion = "Xcode 3.2"; 227 | developmentRegion = English; 228 | hasScannedForEncodings = 0; 229 | knownRegions = ( 230 | en, 231 | ); 232 | mainGroup = 7F94291E1750FF390044E689; 233 | productRefGroup = 7F9429281750FF390044E689 /* Products */; 234 | projectDirPath = ""; 235 | projectRoot = ""; 236 | targets = ( 237 | 7F9429261750FF390044E689 /* UIWebView+Progress */, 238 | 7F64FA50175108FB0072E87A /* DemoApp */, 239 | ); 240 | }; 241 | /* End PBXProject section */ 242 | 243 | /* Begin PBXResourcesBuildPhase section */ 244 | 7F64FA4F175108FB0072E87A /* Resources */ = { 245 | isa = PBXResourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 7F64FA5B175108FB0072E87A /* InfoPlist.strings in Resources */, 249 | 7F64FA63175108FB0072E87A /* Default.png in Resources */, 250 | 7F64FA65175108FB0072E87A /* Default@2x.png in Resources */, 251 | 7F64FA67175108FB0072E87A /* Default-568h@2x.png in Resources */, 252 | 7F64FA6F175109680072E87A /* Main.storyboard in Resources */, 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | /* End PBXResourcesBuildPhase section */ 257 | 258 | /* Begin PBXShellScriptBuildPhase section */ 259 | 05F2BDF030A741E7BAA2C080 /* Check Pods Manifest.lock */ = { 260 | isa = PBXShellScriptBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | inputPaths = ( 265 | ); 266 | name = "Check Pods Manifest.lock"; 267 | outputPaths = ( 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | shellPath = /bin/sh; 271 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 272 | }; 273 | F538D48DFFE543EEBC37C2B0 /* Copy Pods Resources */ = { 274 | isa = PBXShellScriptBuildPhase; 275 | buildActionMask = 2147483647; 276 | files = ( 277 | ); 278 | inputPaths = ( 279 | ); 280 | name = "Copy Pods Resources"; 281 | outputPaths = ( 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | shellPath = /bin/sh; 285 | shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n"; 286 | }; 287 | /* End PBXShellScriptBuildPhase section */ 288 | 289 | /* Begin PBXSourcesBuildPhase section */ 290 | 7F64FA4D175108FB0072E87A /* Sources */ = { 291 | isa = PBXSourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | 7F64FA5D175108FB0072E87A /* main.m in Sources */, 295 | 7F64FA61175108FB0072E87A /* AppDelegate.m in Sources */, 296 | 7F64FA6D175109140072E87A /* ViewController.m in Sources */, 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | }; 300 | 7F9429231750FF390044E689 /* Sources */ = { 301 | isa = PBXSourcesBuildPhase; 302 | buildActionMask = 2147483647; 303 | files = ( 304 | 7F94293A1750FF6A0044E689 /* UIWebView+Progress.m in Sources */, 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | }; 308 | /* End PBXSourcesBuildPhase section */ 309 | 310 | /* Begin PBXTargetDependency section */ 311 | 7F64FA71175109D80072E87A /* PBXTargetDependency */ = { 312 | isa = PBXTargetDependency; 313 | target = 7F9429261750FF390044E689 /* UIWebView+Progress */; 314 | targetProxy = 7F64FA70175109D80072E87A /* PBXContainerItemProxy */; 315 | }; 316 | /* End PBXTargetDependency section */ 317 | 318 | /* Begin PBXVariantGroup section */ 319 | 7F64FA59175108FB0072E87A /* InfoPlist.strings */ = { 320 | isa = PBXVariantGroup; 321 | children = ( 322 | 7F64FA5A175108FB0072E87A /* en */, 323 | ); 324 | name = InfoPlist.strings; 325 | sourceTree = ""; 326 | }; 327 | /* End PBXVariantGroup section */ 328 | 329 | /* Begin XCBuildConfiguration section */ 330 | 7F64FA68175108FB0072E87A /* Debug */ = { 331 | isa = XCBuildConfiguration; 332 | buildSettings = { 333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 334 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 335 | GCC_PREFIX_HEADER = "DemoApp/DemoApp-Prefix.pch"; 336 | HEADER_SEARCH_PATHS = "$(SRCROOT)/Pods/**"; 337 | INFOPLIST_FILE = "DemoApp/DemoApp-Info.plist"; 338 | OTHER_LDFLAGS = "-ObjC"; 339 | PRODUCT_NAME = "$(TARGET_NAME)"; 340 | WRAPPER_EXTENSION = app; 341 | }; 342 | name = Debug; 343 | }; 344 | 7F64FA69175108FB0072E87A /* Release */ = { 345 | isa = XCBuildConfiguration; 346 | buildSettings = { 347 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 348 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 349 | GCC_PREFIX_HEADER = "DemoApp/DemoApp-Prefix.pch"; 350 | HEADER_SEARCH_PATHS = "$(SRCROOT)/Pods/**"; 351 | INFOPLIST_FILE = "DemoApp/DemoApp-Info.plist"; 352 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 353 | OTHER_LDFLAGS = "-ObjC"; 354 | PRODUCT_NAME = "$(TARGET_NAME)"; 355 | WRAPPER_EXTENSION = app; 356 | }; 357 | name = Release; 358 | }; 359 | 7F9429331750FF390044E689 /* Debug */ = { 360 | isa = XCBuildConfiguration; 361 | buildSettings = { 362 | ALWAYS_SEARCH_USER_PATHS = NO; 363 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 364 | CLANG_CXX_LIBRARY = "libc++"; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_CONSTANT_CONVERSION = YES; 367 | CLANG_WARN_EMPTY_BODY = YES; 368 | CLANG_WARN_ENUM_CONVERSION = YES; 369 | CLANG_WARN_INT_CONVERSION = YES; 370 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 371 | COPY_PHASE_STRIP = NO; 372 | GCC_C_LANGUAGE_STANDARD = gnu99; 373 | GCC_DYNAMIC_NO_PIC = NO; 374 | GCC_OPTIMIZATION_LEVEL = 0; 375 | GCC_PREPROCESSOR_DEFINITIONS = ( 376 | "DEBUG=1", 377 | "$(inherited)", 378 | ); 379 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 380 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 381 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 382 | GCC_WARN_UNUSED_VARIABLE = YES; 383 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 384 | ONLY_ACTIVE_ARCH = YES; 385 | SDKROOT = iphoneos; 386 | }; 387 | name = Debug; 388 | }; 389 | 7F9429341750FF390044E689 /* Release */ = { 390 | isa = XCBuildConfiguration; 391 | buildSettings = { 392 | ALWAYS_SEARCH_USER_PATHS = NO; 393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 394 | CLANG_CXX_LIBRARY = "libc++"; 395 | CLANG_ENABLE_OBJC_ARC = YES; 396 | CLANG_WARN_CONSTANT_CONVERSION = YES; 397 | CLANG_WARN_EMPTY_BODY = YES; 398 | CLANG_WARN_ENUM_CONVERSION = YES; 399 | CLANG_WARN_INT_CONVERSION = YES; 400 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 401 | COPY_PHASE_STRIP = YES; 402 | GCC_C_LANGUAGE_STANDARD = gnu99; 403 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 404 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 6.1; 407 | SDKROOT = iphoneos; 408 | VALIDATE_PRODUCT = YES; 409 | }; 410 | name = Release; 411 | }; 412 | 7F9429361750FF390044E689 /* Debug */ = { 413 | isa = XCBuildConfiguration; 414 | baseConfigurationReference = EC3ACEE29C1043E4978409E9 /* Pods.xcconfig */; 415 | buildSettings = { 416 | DSTROOT = /tmp/UIWebView_Progress.dst; 417 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 418 | GCC_PREFIX_HEADER = "UIWebView+Progress/UIWebView+Progress-Prefix.pch"; 419 | OTHER_LDFLAGS = "-ObjC"; 420 | PRODUCT_NAME = "$(TARGET_NAME)"; 421 | SKIP_INSTALL = YES; 422 | }; 423 | name = Debug; 424 | }; 425 | 7F9429371750FF390044E689 /* Release */ = { 426 | isa = XCBuildConfiguration; 427 | baseConfigurationReference = EC3ACEE29C1043E4978409E9 /* Pods.xcconfig */; 428 | buildSettings = { 429 | DSTROOT = /tmp/UIWebView_Progress.dst; 430 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 431 | GCC_PREFIX_HEADER = "UIWebView+Progress/UIWebView+Progress-Prefix.pch"; 432 | OTHER_LDFLAGS = "-ObjC"; 433 | PRODUCT_NAME = "$(TARGET_NAME)"; 434 | SKIP_INSTALL = YES; 435 | }; 436 | name = Release; 437 | }; 438 | /* End XCBuildConfiguration section */ 439 | 440 | /* Begin XCConfigurationList section */ 441 | 7F64FA6A175108FB0072E87A /* Build configuration list for PBXNativeTarget "DemoApp" */ = { 442 | isa = XCConfigurationList; 443 | buildConfigurations = ( 444 | 7F64FA68175108FB0072E87A /* Debug */, 445 | 7F64FA69175108FB0072E87A /* Release */, 446 | ); 447 | defaultConfigurationIsVisible = 0; 448 | }; 449 | 7F9429221750FF390044E689 /* Build configuration list for PBXProject "UIWebView+Progress" */ = { 450 | isa = XCConfigurationList; 451 | buildConfigurations = ( 452 | 7F9429331750FF390044E689 /* Debug */, 453 | 7F9429341750FF390044E689 /* Release */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 7F9429351750FF390044E689 /* Build configuration list for PBXNativeTarget "UIWebView+Progress" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 7F9429361750FF390044E689 /* Debug */, 462 | 7F9429371750FF390044E689 /* Release */, 463 | ); 464 | defaultConfigurationIsVisible = 0; 465 | defaultConfigurationName = Release; 466 | }; 467 | /* End XCConfigurationList section */ 468 | }; 469 | rootObject = 7F94291F1750FF390044E689 /* Project object */; 470 | } 471 | -------------------------------------------------------------------------------- /UIWebView+Progress.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /UIWebView+Progress/UIWebView+Progress-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'UIWebView+Progress' target in the 'UIWebView+Progress' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /UIWebView+Progress/UIWebView+Progress.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface UIWebView (Progress) 5 | 6 | @property (nonatomic, njk_weak) id progressDelegate; 7 | @property (nonatomic, readonly) float progress; // 0.0..1.0 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /UIWebView+Progress/UIWebView+Progress.m: -------------------------------------------------------------------------------- 1 | #import "UIWebView+Progress.h" 2 | #import 3 | #import 4 | 5 | static const char NJKProgressProxyKey; 6 | 7 | @interface UIWebView () 8 | 9 | @property (nonatomic, strong) NJKWebViewProgress *progressProxy; 10 | @property (nonatomic, njk_weak) id webViewProxyDelegate; 11 | 12 | @end 13 | 14 | @implementation UIWebView (Progress) 15 | 16 | + (void)load 17 | { 18 | @autoreleasepool { 19 | ISSwizzleInstanceMethod([self class], @selector(initWithFrame:), @selector(_initWithFrame:)); 20 | ISSwizzleInstanceMethod([self class], @selector(initWithCoder:), @selector(_initWithCoder:)); 21 | ISSwizzleInstanceMethod([self class], @selector(delegate), @selector(_delegate)); 22 | ISSwizzleInstanceMethod([self class], @selector(setDelegate:), @selector(_setDelegate:)); 23 | } 24 | } 25 | 26 | - (id)_initWithFrame:(CGRect)frame 27 | { 28 | self = [self _initWithFrame:frame]; 29 | if (self) { 30 | self.progressProxy = [[NJKWebViewProgress alloc] init]; 31 | self.delegate = self.progressProxy; 32 | } 33 | return self; 34 | } 35 | 36 | - (id)_initWithCoder:(NSCoder *)coder 37 | { 38 | self = [self _initWithCoder:coder]; 39 | if (self) { 40 | self.progressProxy = [[NJKWebViewProgress alloc] init]; 41 | self.delegate = self.progressProxy; 42 | } 43 | return self; 44 | } 45 | 46 | #pragma mark - accessors 47 | 48 | - (NJKWebViewProgress *)progressProxy 49 | { 50 | return objc_getAssociatedObject(self, &NJKProgressProxyKey); 51 | } 52 | 53 | - (void)setProgressProxy:(NJKWebViewProgress *)progressProxy 54 | { 55 | objc_setAssociatedObject(self, &NJKProgressProxyKey, progressProxy, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 56 | } 57 | 58 | - (id )progressDelegate 59 | { 60 | return self.progressProxy.progressDelegate; 61 | } 62 | 63 | - (void)setProgressDelegate:(id)progressDelegate 64 | { 65 | self.progressProxy.progressDelegate = progressDelegate; 66 | } 67 | 68 | - (float)progress 69 | { 70 | return self.progressProxy.progress; 71 | } 72 | 73 | - (id )_delegate 74 | { 75 | return self.progressProxy.webViewProxyDelegate; 76 | } 77 | 78 | - (void)_setDelegate:(id)delegate 79 | { 80 | if ([self _delegate] && delegate != self.progressProxy) { 81 | self.progressProxy.webViewProxyDelegate = delegate; 82 | return; 83 | } 84 | [self _setDelegate:delegate]; 85 | } 86 | 87 | @end 88 | --------------------------------------------------------------------------------