IOS Assigning to 'id' from incompatible type...


提示把错误的类型赋值给UITabBarControllerDelegate,

处理方法:

把头文件修改,加上<UIWebViewDelegate>

@interface ViewController : UITabBarController<UITabBarControllerDelegate>

    @property (strong, nonatomic) UIWindow *window;
    
    @property (strong, nonatomic) UITabBarController *tabBarController;

@end


你可能感兴趣的:(ios,类,delegate,interface)