2011年6月9日

摘要: 接前一篇博文《开源框架Core Plot的使用》。 如果使用了Core Plot标准Mac安装包进行安装,使用起来有一些变化。其实,如果你注意到安装器的最后一个界面,这里已经有一个如何使用的介绍了: To add the Core Plot SDKs to an iOS Project: 1. Add to your project's .PCH file: #import 3. Open Project -> Edit Project Settings and for All Configurations : 3a. Add to Additional SDKS : (Syst 阅读全文
posted @ 2011-06-09 16:16 禚来强 阅读(609) 评论(0) 推荐(0)
摘要: 在多线程操作中,有一个著名的错误,叫做“Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread”,一旦出现这个错误,程序会立即crashed。 这是由于,apple不允许程序员在主线程以外的线程中对ui进行操作(Bug?) 而笔者在一次http异步操作中也出现过这个错误。当时使用了NSOperation进行了http异步请求,然后使用kvo模式注 阅读全文
posted @ 2011-06-09 16:11 禚来强 阅读(1323) 评论(0) 推荐(0)
摘要: 由于iPhone控件的极度匮乏和自定义组件在重用上的限制,在过去的项目中我们积累了大量的“纯代码”组件——因为IB本身的限制,我们无法把这些组件封装为IB组件库(本来我们想通过分发xib文件的方式重用这些组件,但最终发现这根本不可能,苹果的Plug-in编程不支持iPhone)。 最终我们想到了静态库。虽然这仍然还是一种比较原始的复用方式,但起码我们可以隐藏组件的源代码。 下面, 我们使用iPhone静态库把自定义组件CheckButton 进行进一步的封装。(组件的实现参考前一篇博文《自定义控件复选框和单选框的实现》) 一、实现静态库 新建工程, 选择 Library 下的 “ Cocoa 阅读全文
posted @ 2011-06-09 16:09 禚来强 阅读(2049) 评论(0) 推荐(0)
摘要: No Interfaces Available In Wireshark Mac OS X No Interfaces Available In Wireshark Mac OS X Many new Wireshark users on Mac OS X run into an issue where no interfaces show up when trying to begin packet capture. If you attempt to manually input an interface (such as en0) this error will occur: The . 阅读全文
posted @ 2011-06-09 14:04 禚来强 阅读(2316) 评论(0) 推荐(0)
摘要: (转)multipart form-data boundary 说明收藏原文链接:http://yefeng.javaeye.com/blog/315847含义 ENCTYPE="multipart/form-data" 说明:通过 http 协议上传文件 rfc1867协议概述,jsp 应用举例,客户端发送内容构造1、概述在最初的 http 协议中,没有上传文件方面的功能。 rfc1867 (http://www.ietf.org/rfc/rfc1867.txt) 为 http 协议添加了这个功能。客户端的浏览器,如 Microsoft IE, Mozila, Opera 阅读全文
posted @ 2011-06-09 11:21 禚来强 阅读(4426) 评论(0) 推荐(0)
摘要: 地址:http://www.w3.org/Addressing/rfc1808.txtRFC 1808 Relative Uniform Resource Locators June 1995格式: :///;?#each of which, except , may be absent from a particular URL. These components are defined as follows (a complete BNF is provided in Section 2.2): scheme ":" ::= scheme name, as per Se 阅读全文
posted @ 2011-06-09 10:20 禚来强 阅读(707) 评论(0) 推荐(0)

导航