在Xcode中找不到WebKit框架
答
Cocoa Touch中没有Webkit.framework。 webkit框架仅适用于OS X.对于iOS,只需使用UIWebview。从本质上讲http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/Reference/Reference.html
虽然这是很容易的:
欲了解更多信息,请看这里。只需在你的.h中添加一个UIWebview,将它连接到你的Storyboard中的webview。另外,在你的.h中添加UIWebview委托。
喜欢的东西:
@interface yourViewController : UIViewController <UIWebViewDelegate>
然后,在.M,使用
[webView setDelegate:self];
可能在你viewDidLoad方法。
祝你好运!