在使用代理的时候, BViewController *BVC = [[BViewController alloc]init]; self.delegate = BVC; 出现这样的警告Assigning to 'id<XXXDelegate>' from incompatible type 'BViewController *__strong' 解决方案: #import "BViewController.h" @interface BViewController ()&l…
原因: 你自己写了代理,设置了   delegate = self.但是self 没有遵守这个协议 只需要遵守这个协议就可以消除警告.…
出现 Assigning to 'id<UINavigationControllerDelegate,UIImagePickerControllerDelegate>' from incompatible type 'ManageMessageViewController' 警告 当调用UIImagePickerController时,在进行委托定义是提示Assigning to 'id<UINavigationControllerDelegate,UIImagePickerContro…
iphone开发出现警告: Sending '__strong typeof (xxx)' (aka 'xxxx *__strong') to parameter of incompatible type 'id<xxx>' 如图: 原因是没有在头文件实现相应协议. 解决方法是在头文件(.h文件)中 @interface 一行后面加上 <协议名> 如图:…
I have added a UIImagePickerController to a UIViewController. I have assigned the UIImagePickerControllerDelegate to that UIViewController. When I try to do myPicker.delegate = self; Xcode gifts me with this message: warning: assigning to id from inc…
今天遇到了如下的一个错误, Sending 'ccColor4B' (aka 'struct_ccColor4B') to parameter of incompatible type CiColor 网上搜寻解决方案如下,就是要强制设置下类型. 按如下改变: + (id) layerWithColor:(ccColor4B)color {     return [[(CCColorLayer*)[self alloc] initWithColor:color] autorelease];   …
今天在使用SSH框架做项目的时候出现了这个错误,找了我非常非常多的时间!!!!!!! Struts Problem Report Struts has detected an unhandled exception: Messages: 1.Provided id of the wrong type for class zhongfucheng.user.entity.User. Expected: class java.lang.String, got class zhongfucheng.u…
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.hibernate.TypeMismatchException: Provided id of the wrong type for class po…
经常有朋友来问这个问题. 每次都去解释这个问题也浪费不少时间, 所以还是开一篇文章, 把这个问题说清楚吧. 先纠正一个误区吧: 有同学可以通过ionic natvie的device插件获取. 我们在文档里可以找到有serial这个属性. 通过这个属性,我们的确获取到一串字符串. 但是我们也会发现,当我们卸载app之后,这串数值会变,所以这个不能作为我们的唯一设备id. 回归到ios. 我们列举一下可以想到的办法. ios获取设备id的方法 UUID 设备的唯一标识符,然而在ios6以后就已经被废…
问题描述: 1. 后台返回到JSP前台的的list,在jsp页面使用EL表达式遍历时出现如下问题:javax.el.PropertyNotFoundException: Property 'ID' not found on type java.lang.String 2. ID在是int类型.需要在jsp页面把ID转为String类型. 3. 转换的方法为:${item[fn:trim(u.id)]} 需要在页面引入: <%@ taglib uri="http://java.sun.com…