当工程导入的时候,有时候会出现这个错误,只要把@Override去掉就可以了。但是这样做麻烦。引起的原因参考:
http://stackoverflow.com/questions/3735661/bug-with-override-annotations-in-eclipse
This is most likely because you are switching between Java 1.5 and Java 1.6. In 1.5 you couldn't mark interface implementations with @Override, but you can in 1.6.
也就是说1.5中不支持接口实现,那就需要改。
你需要改两个地方:
1:
window->preferences->Java->Compiler->Compiler compliance level:改为1.6
2:
右键你的工程->Properties->Java Compiler->Compiler compliance level:改为1.6
先将代码生成为Release目标(步骤:Xcode4中,Product->Edit Scheme...
Destination改为iOS Device, Run xxx.app的build configuration改为release。
),然后选中Product-》build for archiving,接下来右键xxx.app(xxx为工程名,show in finder)把这个.app(或者.archive)拖到iTunes中,它会出现在应用程序那个列表中,然后再把它从iTunes的那个列表中拖出来(比如拖到桌面),发生了什么?哈哈,它就这样变成.ipa了!
POST /load/servlet/upload.do HTTP/1.1
accept:text/*
content-type:multipart/form-data; boundary=----------Ef1KM7GI3Ef1ei4Ij5ae0KM7cH2KM7
user-agent:Shockwave Flash
host:192.168.1.237:8080
content-length:555
connection:Keep-Alive
cache-control:no-cache
cookie:theworld_client_delete=theworld_client_delete
------------Ef1KM7GI3Ef1ei4Ij5ae0KM7cH2KM7
Content-Disposition: form-data; name="Filename"
鑺傜洰娓呭崟.txt
------------Ef1KM7GI3Ef1ei4Ij5ae0KM7cH2KM7
Content-Disposition: form-data; name="Filedata"; filename="鑺傜洰娓呭崟.txt"
Content-Type: application/octet-stream
锘�2009-11-06
05:30-05:59 1 鍔ㄧ敾涓栫晫
06:00-06:29 1 浣撹偛鏂伴椈
06:30-06:59 1 浜轰笌鑷劧
07:00-07:30 1 鏂伴椈鑱旀挱
------------Ef1KM7GI3Ef1ei4Ij5ae0KM7cH2KM7
Content-Disposition: form-data; name="Upload"
Submit Query
------------Ef1KM7GI3Ef1ei4Ij5ae0KM7cH2KM7--
说明:
1。multipart消息体各段均使用"\r\n"+"--"+boundary开始
2。multipart的http包体结束时,必须是"\r\n"+"--"+boundary+"--";
某些HTTP服务器要求是"\r\n"+"--"+boundary+"--\r\n"
像apache的HttpClient上传的文件,multipart的http包体结束时就是"\r\n"+"--"+boundary+"--\r\n",
但flex组件上传文件的http包体结束时就不含有"\r\n"
3.content-length说明了http包体的大小