04 2012 档案

摘要:转自国外的一个网站,非常好的东西。国外的网址图片显示不全且不容易查看。加密问题。现在自己整理发上来以帮助网友和自己。Before we go over with this tutorial, I would like to thank everyone for reading my posts, for asking questions and for giving suggestions. Because of that, I will continue writing tutorials that might help other developers get rid of headach 阅读全文
posted @ 2012-04-16 15:41 Lee.Kevin 阅读(2343) 评论(0) 推荐(0)
摘要:创建一个controller名为YKWebViewDemoViewController.h文件代码如下#import <UIKit/UIKit.h>@interface YKWebViewDemoViewController : UIViewController<UIWebViewDelegate>{ }@property (strong, nonatomic) UIWebView *webView;- (void)loadWebPageWithString:(NSString*)urlString;- (void)customAction1:(id)sender;- 阅读全文
posted @ 2012-04-11 18:45 Lee.Kevin 阅读(832) 评论(0) 推荐(0)
摘要:在iphone程序中,属性合成中的retain/copy/assign有什么区别?1)assign就不用说了,因为基本上是为简单数据类型准备的,原子类类型,例如CGPoint、CGFloat等,而不是NS对象们;2)retain VS copycopy: 建立一个索引计数为1的对象,然后释放旧对象retain:释放旧的对象,将旧对象的值赋予输入对象,再提高输入对象的索引计数为1Copy其实是建立了一个相同的对象,而retain不是:比如一个NSString对象,地址为0×1111,内容为@”STR”Copy到另外一个NSString之后,地址为0×2222,内容相同,新的对 阅读全文
posted @ 2012-04-09 10:36 Lee.Kevin 阅读(716) 评论(0) 推荐(0)