俺是一个瓜娃!!!
xiaozhao-521 · 共 254 篇文章
美丽说ipad ui 效果 模仿
看到美丽说的这个app居然上到了appstore的首页,难道最近的app 都堕落了吗?? 美丽说这个app也并没有神亮点啊,就这也上了首页。 让哥来仿造一个,这个demon实现的百分之八十的ui方面的效果。需要的tx自行下载学习吧
2012-03-27 14:54 · app模仿 · 评论(0)
iOS Open Source : Popover API for iPhone
http://iphonedevelopertips.com/open-source/ios-open-source-popover-api-for-iphone-wepopover.html WEPopover is an API that mirrors UIPopover for the iPad. This class is intentionally designed to have the same interaction, look and feel as the popover effect on the iPad. The original implementation o…
2012-01-20 15:02 · objective-c · 评论(0)
北京免费吃饭的地方
我觉得如果再不把自己在北京的免费吃法介绍出来,就是对大家的不负责任,我会受到良心的谴责的。 正餐钱柜: 钱柜每天都有免费供应,从早餐到夜宵,从汽水到水果沙拉,应有尽有,而且两天之内不会有重复。去钱柜吃,不一定要唱歌消费,诀窍就是只要赶在开餐的点去就行(什么点开放,去钱柜大厅拿一张消费小卡就知道了,我就不专门说了)。每天我8点上班,5点下班,中午有12点到1点有一个小时的吃饭时间,一般情况下,我只去吃中餐和晚餐(早餐、下午茶都赶不上),偶尔去吃顿夜宵,周六周日就说不准了。单位离首体的钱柜有2站地。为此,我专门办了一张月票(单位可以报,等于路费没花钱,碰到人多或是时间紧也偶尔坐坐空调车)。每次进…
2012-01-12 13:41 · 在北京不花一分钱的生活 · 评论(1)
ios 任务、线程、定时器
一:operations(任务) cocoa提供了三种不同的operations 1:Block operations( NSBlockOperation ) These facilitate the execution of one or more block objects. #import <UIKit/UIKit.h> @interface OperationsAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; NSBlockOperation *simpleOperation; } @property…
2011-12-26 18:09 · objective-c · 评论(0)
ios url缓存策略——NSURLCache、 NSURLRequest
一:url 缓存策略 NSURLRequest requestWithURL:cachePolicy:timeoutInterval: 1:NSURLRequestUseProtocolCachePolicy This flag will use the underlying protocol’s caching mechanism if the protocol supports it. 基础策略 2:NSURLRequestReloadIgnoringLocalCacheData This flag specifies that the local cached copy of the …
2011-12-26 17:09 · objective-c · 评论(0)
ios NSInvocation简单使用
在ios直接调用某个对象的消息是方法有两种: 一:performselector:withObject: 二:invocation 第一种方式比较简单,能完成简单的调用。但是对于>2个的参数或者有返回值的处理,那就需要做些额外工作才能搞定。那么在这种情况下,我们就可以使用NSInvocation来进行这些相对复杂的操作 NSInvocation可以处理参数、返回值。会java的人都知道凡是操作,其实NSInvocation就相当于反射操作。 //方法签名类,需要被调用消息所属的类AsynInvoke ,被调用的消息invokeMethod: NSMethodSignature *sig= […
2011-12-22 16:39 · objective-c · 评论(1)
ios 4 新特性--------AssetsLibrary
一:assetslibrary 读取photo 和video 1:add AssetsLibrary 2:#import <AssetsLibrary/AssetsLibrary.h> 3: -(IBAction) getStats { __block int numberOfGroups = 0; __block int numberOfAssets = 0; // Create the object to represent the library ALAssetsLibrary *assetsLibrary = [[ALAssetsLibrary alloc] init]; // Wh…
2011-12-20 15:28 · ios 4 新特性 · 评论(0)
ios 4 新特性-----Objective-C的Block,递归与泛型
Apple在C,Objective-C和C++中扩充了Block这种文法的,并且在GCC4.2中进行了支持。现在我们可以在Mac 10.6和iOS 4中使用。如果是Mac 10.6 或 iOS 4.0 之前的平台,据说可以用 http://code.google.com/p/plblocks/ 这个项目来支持Block语法。 Apple在 Snow Leopard中所用到的Grand Central Dispatch(GCD)就是基于Blocks实现的。Grand Central Dispatch是苹果开发的工具,目的是帮助开发者更容易的利用多核处理器的并行处理功能。关于Blocks以及GC…
2011-12-19 13:43 · ios 4 新特性 · 评论(0)
ios 4 新特性 日历事件
Event Kit 框架 iOS 4.0引入了 Event Kit 框架 (EventKit.framework)。此框架为访问用户设备的日历事件提供接口。您可以通过该框架访问用户日历中现有事件,可以增加新事件。日历事件可包含闹铃,而且可以配置闹铃激活规则。 一:using enevt kit 1:get existing events 2:create new events 3:delete events 4:be notified of event changes 二:create new events 1:add EventKit.framework 2:导入头文件 #import <…
2011-12-16 10:40 · ios 4 新特性 · 评论(0)
ios 4 新特性 多任务
一:了解multitasking background apps(可以在后台运行的任务): 1:play audio 2:get location 3:voip stream 4:request time to finish 5: create notifications 二:多任务生命周期 1:程序加载成功 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 2:程序将要失去活跃状态 - (void)applicationWi…
2011-12-15 16:56 · ios 4 新特性 · 评论(0)
ios 4 新特性 总结
1. 多任务 这个自然不用多说,招牌特性.具体细节是这样,点了home键之后,运行的程序并没有被彻底关掉,而是进入到suspended状态,就像虚拟机被暂停一 样,数据和状态都在,只是被freezed,可以随时恢复,当然也有可能随时被彻底干掉,比如在内存低的状况下.所以被suspended应用要随时准 备 着就义. 那么这个多任务究竟体现在哪里呢? a.在进入休眠状态之前可以申请很短的时间,保存一些数据或者干点什么坏事. b.可以向系统申请一段时间小范围的复活一下,执行一些动作 c.可以向系统注册local notification,说白了就是订个闹钟,在某特定时间或者特定事件跳出一个类似p…
2011-12-15 15:40 · ios 4 新特性 · 评论(0)
iphone 对Web Services的三种请求方式soap get post
一:Using SO AP 1.1 POST /iptocountry.asmx HTTP/1.1 Host: www.ecubicle.net Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: “http://www.ecubicle.net/webservices/FindCountryAsXml” <?xml version=”1.0” encoding=”utf-8”?> <soap:Envelope xmlns:xsi=”http://www.w3.org/2001/XMLSchema-…
2011-11-09 10:57 · objective-c · 评论(3)
sdk3.2手势实例
#import <UIKit/UIKit.h> @interface GesturesViewController : UIViewController { IBOutlet UIImageView *imageView; } @property (nonatomic, retain) UIImageView *imageView; @end #import “GesturesViewController.h” @implementation GesturesViewController @synthesize imageView; CGFloat lastScaleFactor = 1; …
2011-11-09 10:11 · objective-c · 代码 · 评论(0)