随笔分类 -  技术文档

开源框架Core Plot的使用
摘要:iPhone下的图形框架并不是很多。其中比较知名的就两个s7graphview和Core Plot。巧的是两个都是Google的。前者使用简单,但功能单一,只能画曲线图。后者是开源项目,项目仍在不断更新中,用起来可就复杂多了,而且各个版本会有差异,包括属性、方法,甚至是类名都有改变。 关于Core Plot使用的中文网上资料,不是缺乏,而是根本没有。唯一的一篇介绍得比较详细的文章是“Using Core Plot in an iPhone Application”, 原文是英文的:http://www.switchonthecode.com/tutorials/using-core-plot- 阅读全文

posted @ 2011-06-10 12:48 禚来强 阅读(3073) 评论(0) 推荐(0)

Core Plot SDK的用法
摘要:接前一篇博文《开源框架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)

NSOperation与performSelectorOnMainThread
摘要:在多线程操作中,有一个著名的错误,叫做“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 禚来强 阅读(1322) 评论(0) 推荐(0)

No Interfaces Available In Wireshark Mac OS X
摘要: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 说明
摘要:(转)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)

RFC 1808 ——URL定义
摘要:地址: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)

iOS 4.3 升级到 iOS 5.0 API Differences(不同)
摘要:iOS 4.3 to iOS 5.0 API Differences Added frameworks: Accounts CoreBluetooth CoreImage GLKit GSS NewsstandKit Twitter Accelerate Alpha.h Added #def VIMAGE_ALPHA_H Added vImageAlphaBlend_ARGB8888() Added vImageAlphaBlend_ARGBFFFF() Added vImageAlphaBlend_NonpremultipliedToPremultiplied_ARGB8888() Add. 阅读全文

posted @ 2011-06-08 16:04 禚来强 阅读(1282) 评论(0) 推荐(0)

NSDateFormatter setDateFormat 自定义日期/时间格式
摘要:NSDateFormatter setDateFormat 自定義日期/時間格式 參考: http://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns 阅读全文

posted @ 2011-06-08 16:03 禚来强 阅读(603) 评论(0) 推荐(0)

Xcode 4 创建静态库
摘要:为了代码保密或者代码重用等等原因需要把现有的代码打包放入静态库中,这也是静态库的好处,所以今天一天都在研究如何用xcode 4创建静态库,也是为了我们的项目需要。QQ发布的微博SDK会报错,也是因为没有把静态库打包为unniver static libraries的原因,至于是什么是unniver static libraries,大家可以google一下。(http://blog.boreal-kiss.net/2011/03/15/how-to-create-universal-static-libraries-on-xcode-4/)下面是创建静态库的方法1.xcode-create p 阅读全文

posted @ 2011-06-07 19:36 禚来强 阅读(945) 评论(0) 推荐(0)

How to create universal static libraries on Xcode 4: the traditional wa
摘要:How to create universal static libraries on Xcode 4: the traditional way by borealkiss [Note on 09.04.2011: This article will not be helpful unless you really need universal static libraries for distribution purposes etc. Instead, using workspace is a better way for daily development.] INTRODUCTION. 阅读全文

posted @ 2011-06-07 18:36 禚来强 阅读(534) 评论(0) 推荐(0)

对于开发人员各个版本的ios sdk有什么不同(清单)
摘要:http://developer.apple.com/library/prerelease/ios/#releasenotes/General/WhatsNewIniPhoneOS/Articles/iPhoneOS4.html#//apple_ref/doc/uid/TP40009559-SW5 阅读全文

posted @ 2011-06-07 11:34 禚来强 阅读(1354) 评论(0) 推荐(1)

iPhone的特殊URL
摘要:iPhone的特殊URL JUL 在iPhone中,可以直接用UIApp打开URL地址。如下所示: [ UIApp openURL: [ NSURL URLWithString:@"http://www.apple.com" ] ]; 或者: [ UIApp openURL: [ NSURL URLWithString:@"mailto:apple@mac.com?Subject=hello" ] ]; 与此同时,iPhone还包含一些其他除了http://或者mailto:之外的URL: sms:// 可以调用短信程序 tel:// 可以拨打电话 it 阅读全文

posted @ 2011-06-06 14:57 禚来强 阅读(472) 评论(0) 推荐(0)

iphone界面元素的大小
摘要:Sizes of iPhone UI Elements Element Size (in points) Window (including status bar) 320 x 480 pts Status Bar (How to hide the status bar) 20 pts View inside window (visible status bar) 320 x 460 Navigation Bar 44 pts Nav Bar Image / Toolbar Image up to 20 x 20 pts (transparent PNG) Tab Bar 49 pts Ta. 阅读全文

posted @ 2011-06-05 20:54 禚来强 阅读(521) 评论(0) 推荐(0)

关于Icon.png设置的官方文档
摘要:Technical Q&A QA1686 引用网址:http://developer.apple.com/library/ios/#qa/qa1686/_index.html App Icons on iPad and iPhone Q: How are the icon files in my application bundle used on iPad and iPhone? A: How are the icon files in my application bundle used on iPad and iPhone? Below are guidelines for ha 阅读全文

posted @ 2011-06-05 20:44 禚来强 阅读(1952) 评论(0) 推荐(0)

图标的圆角和光晕效果和启动画面
摘要:来自于:http://www.xiaweipin.com/archives/28#roundcorner 图标的圆角和光晕效果 圆角效果。图标的圆角效果是系统自动加上的,我们不能控制。这也是为什么我们看到的每个图标,其圆角效果是完全相同的。 光晕效果。光晕效果也是系统加上的,和“圆角”不同的是,光晕效果是一个可选项。我们可以通过设置app的光晕参数(UIPrerenderedIcon),告诉系统是否要为我们的图标打上光晕效果。 总结:1)设计图标时请记得,图标的圆角效果是系统自动加上的,且是我们无法控制的。 2)设计图标前先决定,是否要使用系统内建的“光晕效果”。 每个图标都有相同的圆角。左边 阅读全文

posted @ 2011-06-05 19:50 禚来强 阅读(1234) 评论(0) 推荐(0)

Default命名方法
摘要:Default命名方法 .png 这个就不多说了,方法和icon是一样的,只列出相关的后缀 默认为Default,也可用UILaunchImageFile key设置,在这用Default举例 旋转 方向 -PortraitUpsideDown -LandscapeLeft -LandscapeRight -Portrait -Landscape None 也就是说你可以Default-Portrait.png 来表示竖屏时的加载图像,同样也可以直接Default.png不指定方向 依然是为iphone4准备,用法和icon雷同 Default-Portrait.png与Default-Por 阅读全文

posted @ 2011-06-05 19:44 禚来强 阅读(351) 评论(0) 推荐(0)

如何让你的UINavigationController.rootViewController 占领这个屏幕?UINavigationController UIView fullScreen
摘要:[[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleBlackOpaque];self.navigationController.navigationBar.translucent = YES;[self.navigationController.view setNeedsLayout];self.wantsFullScreenLayout = YES; 阅读全文

posted @ 2011-06-05 02:44 禚来强 阅读(999) 评论(0) 推荐(1)

What is difference between UIModalTransitionStyle and UIModalPresentationStyle ?
摘要:up vote0down votefavorite For UIViewController, we have UIModalTransitionStyle and UIModalPresentationStyle enter link description hereQuestion is what is the difference of them ?1 Answer activeoldestvotes up vote1down voteaccepted UIModalTransitionStyle is used to specify how the modal form transi. 阅读全文

posted @ 2011-06-04 18:02 禚来强 阅读(822) 评论(0) 推荐(0)

为什么证书和配置文件设置正确以后,xcode还是不能发现真机
摘要:今天进行新的项目的真机测试,但是突然发现我的xcode4不能发现真机,看看证书和签名都没有错,真的很奇怪。 经过一个小时的研究发现,原来是我的iphone从4.2.1降级到3.1.3了,而Deploument Target还是设置为4.1,所以导致我的iphone无法被识别,有我和相似的dev可以参考一下。 阅读全文

posted @ 2011-06-04 14:07 禚来强 阅读(314) 评论(0) 推荐(0)

OAuth的原理认证流程及访问资源流程
摘要:OAuth的原理认证流程及访问资源流程腾讯微博API通过以下四个步骤来完成认证授权并访问或修改受限资源的流程1.获取未授权的Request Token(temporary credentials)2.请求用户授权Request Token3.使用授权后的Request Token换取Access Token(token credentials)4.使用 Access Token 访问或修改受保护资源其中1~3步使用https方式, 第4步使用http方式。请求签名说明所有TOKEN请求和受保护的资源请求必须被签名,微博开放平台会根据签名来判断请求的合法性。签名算法使用Signature Bas 阅读全文

posted @ 2011-06-01 14:22 禚来强 阅读(4404) 评论(1) 推荐(2)

导航