ninjinkun / NJKWebViewProgress

UIWebView progress interface
MIT License
3.89k stars 594 forks source link

Add <UIKit/UIKit.h> to NJKWebViewProgress.h #46

Open jsm174 opened 9 years ago

jsm174 commented 9 years ago

Hello.

If you make a brand new project in Xcode, and add NJKWebViewProgress.h, it will fail to compile with:

/MyApp/SDKs/NJKWebViewProgress/NJKWebViewProgress.h:23:42: Cannot find protocol declaration for 'UIWebViewDelegate'

My guess is XCode now longer includes precompiled headers in new projects.

If you add <UIKit/UIKit.h> to NJKWebViewProgress.h, it compiles fine.

//
//  NJKWebViewProgress.h
//
//  Created by Satoshi Aasano on 4/20/13.
//  Copyright (c) 2013 Satoshi Asano. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

Thanks, -- Jason

tomasdev commented 9 years ago

This is done.