[英]Issue in compiling project after updating to Xcode 8
最近我的項目升級到Xcode 8並且無法編譯我的項目。 一切都在Xcode 7中運行良好,但似乎無法弄清楚這里有什么問題。
繼續使用現有的說明符'no null'獲得Nullability說明符'nullable'沖突。
這是代碼:
@interface NotificationViewController () <UIWebViewDelegate>
@property (weak, nonatomic) IBOutlet UIWebView *webNotification;
@end
@implementation NotificationViewController
// Error on next line
- (void)webView:(UIWebView *)webView didFailLoadWithError:(nullable NSError *)error
{
[MBProgressHUD hideHUDForView:self.view animated:YES];
}
@end
任何見解?
查看didFailLoadWithError:
delegate方法的文檔。 請注意它與您的代碼中的不同之處。 你需要讓它變得一樣。
簡單地放棄對nullable
的誤用。
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.