
iphone development
文章平均质量分 59
chenniao22
这个作者很懒,什么都没留下…
展开
-
Cocoaのメモリ管理(3)
保持と解除という方法は、理屈は分かるし簡単そうに見えます。しかし、実際にやってみると意外と難しいことがわかります。そこでCocoaでは少し楽をするための仕組みを導入しています。簡単に言えば、とりあえずなんでも入れておけるごみ袋を用意して、不要になった時点でごみ袋ごと捨てちゃうという方法です。このごみ袋にあたるのが、NSAutoreleasePoolというクラスです。Application Ki...原创 2010-07-15 14:42:30 · 208 阅读 · 0 评论 -
如何从一个方法中返回来自于集合的对象
- (ImageScrollView *)dequeueRecycledPage{ ImageScrollView *page = [recycledPages anyObject]; if (page) { [[page retain] autorelease]; [recycledPages removeObject:page]...2012-06-25 00:20:44 · 568 阅读 · 0 评论 -
类似Tweetie那种拽下来就refresh的代码
http://github.com/enormego/EGOTableViewPullRefresh原创 2012-06-22 12:28:49 · 152 阅读 · 0 评论 -
difference between frame and bounds Property
boundsThe bounds rectangle, which describes the view’s location and size in its own coordinate system.@property(nonatomic) CGRect boundsDiscussionOn the screen, the bounds rectangle represen...原创 2012-06-17 21:55:56 · 143 阅读 · 0 评论 -
Apple Offical : View Programming Guide for iOS
https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/WindowsandViews/WindowsandViews.html#//apple_ref/doc/uid/TP40009503-CH2-SW1原创 2012-06-16 17:06:30 · 125 阅读 · 0 评论 -
use UINavigationController inside a UITabBarController
If you want to add a UINavigationController into a TabView, and while the tab was taped,turn current view to display rootView of the UINavigationController.Keep following principles.1,Don't put ...原创 2012-06-16 13:39:37 · 104 阅读 · 0 评论 -
关于ios中bounds与frame
1.ios中的bounds是指相对于视图自己的坐标,所以默认view.bounds.origin = (0,0);2.ios中的frame是指相对于父视图的坐标3.当bounds改变的时候,会影响到frame比如下面的代码:CGRect frame = CGRectMake(0, 0, 200, 200);UILabel * label = [UILabel alloc] initWithFram...原创 2012-06-16 12:03:49 · 154 阅读 · 0 评论 -
The cocos2d Tips & Tricks
The cocos2d Tips & Tricks is a problem / solution style book of “recipes” that can help the new and experienced cocos2d developer. It is a collection of the best practices, tips and tricks from the co...原创 2010-07-02 14:32:34 · 109 阅读 · 0 评论 -
Declared Properties
WritabilityThese attributes specify whether or not a property has an associated set accessor. They are mutually exclusive.readwrite Indicates that the property should be treated as read...原创 2010-06-30 14:13:39 · 165 阅读 · 0 评论 -
Enum常量放入NSArray的方法
ypedef enum { UIViewAnimationCurveEaseInOut, UIViewAnimationCurveEaseIn = 0, UIViewAnimationCurveEaseOut, UIViewAnimationCurveLinear} UIViewAnimationCurve;This result of th...原创 2010-09-07 23:14:13 · 544 阅读 · 0 评论 -
objective-c NSString 使用详细指南
Declaring Constant String Objects A constant string object is declared by encapsulating the string in double quotes (") preceded by an @ sign. For example:@"This is a constant character strin...原创 2010-09-02 11:36:26 · 128 阅读 · 0 评论 -
What is Core Data?
Path to SuccessThe Core Data Programming Guide is primarily a reference volume. You should not simply try to read it straight through to understand Core Data.To learn about Core Data, you should...原创 2010-08-31 22:03:28 · 113 阅读 · 0 评论 -
Iphone开发常用软件
粒子特效:particleillusion原创 2010-07-19 16:41:58 · 114 阅读 · 0 评论 -
iPhone にインストールされているフォント一覧
タイトルの通り、iPhone にインストールされているフォントをフォントファミリー毎に書き出してみた。FontViewer と、Fonts をインストールして確認しました。American Typewriter * AmericanTypewriter * AmericanTypewriter-BoldAppleGothic * Ap...原创 2010-07-19 13:21:18 · 224 阅读 · 0 评论 -
property “assign” and “retain” for delegate
1 Answeractiveoldestvotesup vote13down voteacceptedThe documentation says:Retaining an object creates a strong reference, and an object cannot be deallocated until all of i...原创 2012-06-25 01:11:33 · 139 阅读 · 0 评论