随笔分类 -  第三方开发文档

ibooks 3d 翻转效果 flip 3d
摘要:Bells And WhistlesThe iPhone has a set of nice transition animations which makes the experience using it very pleasant. But after a while one get so used of them that one stop noticing that they are even there. But this is not necessary a bad thing. Often I think thatreallygood things doesn’t show a 阅读全文

posted @ 2011-06-29 17:15 禚来强 阅读(431) 评论(0) 推荐(0)

core plot 使用方法
摘要:- (void)constructScatterPlot{// Create graph from themegraph = [[CPXYGraph alloc] initWithFrame:CGRectZero];CPTheme *theme = [CPTheme themeNamed: @"Dark Gradients"];[graph applyTheme:theme];scatterPlotView.hostedGraph = graph;graph.paddingLeft = 10.0;graph.paddingTop = 10.0;graph.paddingRi 阅读全文

posted @ 2011-06-13 11:23 禚来强 阅读(2714) 评论(1) 推荐(2)

开源框架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 禚来强 阅读(608) 评论(0) 推荐(0)

静态库
摘要:http://blog.carbonfive.com/2011/04/04/using-open-source-static-libraries-in-xcode-4/ 阅读全文

posted @ 2011-06-07 20:15 禚来强 阅读(158) 评论(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)

命令添加three20
摘要:命令添加three20> python three20/src/scripts/ttmodule.py -p path/to/your/project/project.xcodeproj Three20 --xcode-version=4详细网站:http://three20.info/article/2011-03-10-Xcode4-Support%20%3E%20python%20three20/src/scripts/ttmodule.py%20-p%20path/to/your/project/project.xcodeproj%20Three20%20--xcode-vers 阅读全文

posted @ 2011-05-29 03:17 禚来强 阅读(355) 评论(0) 推荐(0)

three20 教程 学习笔记 three20 NetWork 详解
摘要://作者:禚来强 iphone开发qq群:79190809 邮箱:zhuolaiqiang@gmail.com还是老规矩我比较喜欢贴代码:void TTNetworkRequestStarted();//开始状态栏小飞轮void TTNetworkRequestStopped();//停止状态栏小飞轮#define TTIMAGE(_URL) [[TTURLCache sharedCache] imageForURL:_URL]//缓冲中提取图片,没有就去网络下载缓存方案typedef enum {TTURLRequestCachePolicyNone= 0,TTURLRequestCache 阅读全文

posted @ 2011-05-05 16:30 禚来强 阅读(2244) 评论(0) 推荐(1)

three20 缓存 TTURLRequestCachePolicy 缓冲 方案 详解
摘要:typedef enum { TTURLRequestCachePolicyNone = 0,//没有缓存 TTURLRequestCachePolicyMemory = 1,//内存缓存 TTURLRequestCachePolicyDisk = 2,//磁盘缓存 TTURLRequestCachePolicyNetwork = 4,//利用http协议缓存,TTURLRequestCachePolicyNoCache= 8,//没有缓冲策略 并且禁用了EtagEtag的用法在我的博客里有详细的介绍 TTURLRequestCachePolicyEtag = 16 | TTURLReques 阅读全文

posted @ 2011-05-05 13:30 禚来强 阅读(479) 评论(0) 推荐(0)

Three20 资料 学习 之 Three20 core
摘要:Three20 资料 学习 之 Three20 core// - Global#import "Three20Core/TTCorePreprocessorMacros.h"//安全释放#import "Three20Core/TTGlobalCore.h"//创建一个数组不引用对象的数组和测试数组等对象是否为空#import "Three20Core/TTGlobalCoreLocale.h"//网络链接失败的原因#import "Three20Core/TTGlobalCorePaths.h"//主要是操作ap 阅读全文

posted @ 2011-05-05 11:54 禚来强 阅读(402) 评论(0) 推荐(0)

three20 network
摘要:void TTNetworkRequestStarted();状态栏显示网络链接void TTNetworkRequestStopped();状态栏不显示网络链接#define TTIMAGE(_URL) [[TTURLCache sharedCache] imageForURL:_URL]从缓存中得到图片,如果没有下载 阅读全文

posted @ 2011-05-04 20:28 禚来强 阅读(223) 评论(0) 推荐(0)

[Three20] Three20系列之Three20概述
摘要:[Three20]Three20系列之Three20概述Three20在概念上分为四个部分:所有一切的中心是内核(Core),围绕在它周围是的网络(Network)、用户界面(UI)和样式(Style)。内核(Core)考虑到内核(Core)就像是Objective-C开发的瑞士军刀一样,我们应该花一些时间来熟悉它的功能特点。通过Three20内核(Core),可以:从NSData对象生成MD5哈希;扩展Xcode的日志记录和调试能力;对比以字符串为版本号的版本大小 (例如:版本号为3.0比版本号为3.1的版本更早);给委托(delegate)创建不会引用计数(non-retaining)的数 阅读全文

posted @ 2011-05-04 19:17 禚来强 阅读(434) 评论(0) 推荐(0)

TTDebug 快速打印 log ------rect point size
摘要:p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #7a482f}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px}span.s1 {color: #d62c24}工程加入three20后可直接使用#define TTLOGRECT(rect) \ TTDINFO(@"%s x=%f, y=%f, w=%f, h=%f", #rect, rect.origin.x, rect.origin 阅读全文

posted @ 2011-05-04 15:24 禚来强 阅读(327) 评论(0) 推荐(0)

iphone 开发之 第三方 network框架 ASIHTTPRequest 详解
摘要:ASIHTTPRequest 详解, http 请求终结者 今天把这个的官方文档翻译的出来以做分享~让迷途之人有路可寻~ASIHTTPRequest是一款极其强劲的HTTP访问开源项目。让简单的API完成复杂的功能,如:异步请求,队列请求,GZIP压缩,缓存,断点续传,进度跟踪,上传文件,HTTP认证在新的版本中,还加入了Objective-C闭包Block的支持,让我们的代码更加轻简灵活。下面就举例说明它的API用法。发起一个同步请求同步意为着线程阻塞,在主线程中使用此方法会使应用Hang住而不响应任何用户事件。所以,在应用程序设计时,大多被用在专门的子线程增加用户体验,或用异步请求代替(下 阅读全文

posted @ 2011-05-02 15:51 禚来强 阅读(515) 评论(0) 推荐(0)

TTUrlMap 用法
摘要:// Any URL that doesn't match will fall back on this one, and open in the web browser [map from:@"*" toViewController:[TTWebController class]]; // The tab bar controller is shared, meaning there will only ever be one created. Loading // This URL will make the existing tab bar controlle 阅读全文

posted @ 2011-04-29 21:17 禚来强 阅读(360) 评论(0) 推荐(0)

Three20多参数映射 TTUrlMap
摘要:首先要这样定义:[map from:@"x://profile/(initWithId:)/(name:)" toViewController:[ProfileViewController class]];[map from:@"*" toViewController:[TTWebController class]];我在ProfileViewController 中实现- (id)initWithId:(int)anIdentifier name:(NSString *)name来处理这种映射的选择器。这样做的效果相当于调用[[ProfileViewC 阅读全文

posted @ 2011-04-29 17:49 禚来强 阅读(374) 评论(0) 推荐(0)

Three20之TTUrlMap用法
摘要:p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}span.s1 {color: #c02d9d}span.s2 {color: #743fa4}用了很长时间three20了也想写点关于这个框架的文章,说是在的three20的资料网上真是太少了,希望本文对你有所帮助。作者:禚来强 邮箱 zhuolaiqiang@gmail.com 转帖请保留- (void)from:(NSString*)URL toViewController:(id)target;- (void)from:(NSString*)URL toViewContr 阅读全文

posted @ 2011-04-29 15:17 禚来强 阅读(403) 评论(1) 推荐(0)

Three20命令添加方法
摘要:命令添加three20> python three20/src/scripts/ttmodule.py -p path/to/your/project/project.xcodeproj Three20 --xcode-version=4 阅读全文

posted @ 2011-04-26 21:34 禚来强 阅读(272) 评论(0) 推荐(0)

app打包过程
摘要:主要是为了客户测试用1。先要选择真机运行2。然后选择 product->Archive->shared; 阅读全文

posted @ 2011-04-26 21:32 禚来强 阅读(256) 评论(0) 推荐(0)

TTDebug用法
摘要:#define TTLOGLEVEL_INFO 5#define TTLOGLEVEL_WARNING 3#define TTLOGLEVEL_ERROR 1#ifndef TTMAXLOGLEVEL #define TTMAXLOGLEVEL TTLOGLEVEL_WARNING#endif// The general purpose logger. This ignores logging levels.#ifdef DEBUG//作者:禚来强 邮箱:zhuolaiqiang@gmail.com #define TTDPRINT(xx, ...) NSLog(@"%s(%d): 阅读全文

posted @ 2011-04-26 19:30 禚来强 阅读(573) 评论(0) 推荐(0)

导航