摘要: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
阅读全文
摘要:- (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
阅读全文
摘要:iPhone下的图形框架并不是很多。其中比较知名的就两个s7graphview和Core Plot。巧的是两个都是Google的。前者使用简单,但功能单一,只能画曲线图。后者是开源项目,项目仍在不断更新中,用起来可就复杂多了,而且各个版本会有差异,包括属性、方法,甚至是类名都有改变。 关于Core Plot使用的中文网上资料,不是缺乏,而是根本没有。唯一的一篇介绍得比较详细的文章是“Using Core Plot in an iPhone Application”, 原文是英文的:http://www.switchonthecode.com/tutorials/using-core-plot-
阅读全文
摘要:接前一篇博文《开源框架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
阅读全文
摘要:http://blog.carbonfive.com/2011/04/04/using-open-source-static-libraries-in-xcode-4/
阅读全文
摘要: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
阅读全文
摘要:命令添加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
阅读全文
摘要://作者:禚来强 iphone开发qq群:79190809 邮箱:zhuolaiqiang@gmail.com还是老规矩我比较喜欢贴代码:void TTNetworkRequestStarted();//开始状态栏小飞轮void TTNetworkRequestStopped();//停止状态栏小飞轮#define TTIMAGE(_URL) [[TTURLCache sharedCache] imageForURL:_URL]//缓冲中提取图片,没有就去网络下载缓存方案typedef enum {TTURLRequestCachePolicyNone= 0,TTURLRequestCache
阅读全文
摘要:typedef enum { TTURLRequestCachePolicyNone = 0,//没有缓存 TTURLRequestCachePolicyMemory = 1,//内存缓存 TTURLRequestCachePolicyDisk = 2,//磁盘缓存 TTURLRequestCachePolicyNetwork = 4,//利用http协议缓存,TTURLRequestCachePolicyNoCache= 8,//没有缓冲策略 并且禁用了EtagEtag的用法在我的博客里有详细的介绍 TTURLRequestCachePolicyEtag = 16 | TTURLReques
阅读全文
摘要:Three20 资料 学习 之 Three20 core// - Global#import "Three20Core/TTCorePreprocessorMacros.h"//安全释放#import "Three20Core/TTGlobalCore.h"//创建一个数组不引用对象的数组和测试数组等对象是否为空#import "Three20Core/TTGlobalCoreLocale.h"//网络链接失败的原因#import "Three20Core/TTGlobalCorePaths.h"//主要是操作ap
阅读全文
摘要:void TTNetworkRequestStarted();状态栏显示网络链接void TTNetworkRequestStopped();状态栏不显示网络链接#define TTIMAGE(_URL) [[TTURLCache sharedCache] imageForURL:_URL]从缓存中得到图片,如果没有下载
阅读全文
摘要:[Three20]Three20系列之Three20概述Three20在概念上分为四个部分:所有一切的中心是内核(Core),围绕在它周围是的网络(Network)、用户界面(UI)和样式(Style)。内核(Core)考虑到内核(Core)就像是Objective-C开发的瑞士军刀一样,我们应该花一些时间来熟悉它的功能特点。通过Three20内核(Core),可以:从NSData对象生成MD5哈希;扩展Xcode的日志记录和调试能力;对比以字符串为版本号的版本大小 (例如:版本号为3.0比版本号为3.1的版本更早);给委托(delegate)创建不会引用计数(non-retaining)的数
阅读全文
摘要: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
阅读全文
摘要:ASIHTTPRequest 详解, http 请求终结者 今天把这个的官方文档翻译的出来以做分享~让迷途之人有路可寻~ASIHTTPRequest是一款极其强劲的HTTP访问开源项目。让简单的API完成复杂的功能,如:异步请求,队列请求,GZIP压缩,缓存,断点续传,进度跟踪,上传文件,HTTP认证在新的版本中,还加入了Objective-C闭包Block的支持,让我们的代码更加轻简灵活。下面就举例说明它的API用法。发起一个同步请求同步意为着线程阻塞,在主线程中使用此方法会使应用Hang住而不响应任何用户事件。所以,在应用程序设计时,大多被用在专门的子线程增加用户体验,或用异步请求代替(下
阅读全文
摘要:// 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
阅读全文
摘要:首先要这样定义:[map from:@"x://profile/(initWithId:)/(name:)" toViewController:[ProfileViewController class]];[map from:@"*" toViewController:[TTWebController class]];我在ProfileViewController 中实现- (id)initWithId:(int)anIdentifier name:(NSString *)name来处理这种映射的选择器。这样做的效果相当于调用[[ProfileViewC
阅读全文
摘要: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
阅读全文
摘要:命令添加three20> python three20/src/scripts/ttmodule.py -p path/to/your/project/project.xcodeproj Three20 --xcode-version=4
阅读全文
摘要:主要是为了客户测试用1。先要选择真机运行2。然后选择 product->Archive->shared;
阅读全文
摘要:#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):
阅读全文