Showing posts with label iPhone. Show all posts
Showing posts with label iPhone. Show all posts

Saturday, February 26, 2011

Three20 Tutorial

http://www.raywenderlich.com/656/introduction-to-three20

http://scope.three20.info/the-three20-tutorial-list-t9.html

http://three20.pypt.lt/

Wednesday, February 23, 2011

iPhone declared property

唔明乜野係@property (nonatomic, retain) MyObject* obj?
睇呢度啦:
http://stackoverflow.com/questions/1662772/nsstring-no-assign-retain-or-copy-attribute-is-specified

http://stackoverflow.com/questions/821692/what-does-the-property-nonatomic-mean

Official doc:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocProperties.html

Monday, February 7, 2011

Description of initWithNibName, awakeFromNib and viewDidLoad?

If you're creating your views in IB, then you should use viewDidLoad. That will be called every time the view is initialized to be put up. You use initWithNibName: when you're creating your view in code. You shouldn't use awakeFromNib with views for the iPhone.

The reason that initWithNibName is not seeming to be called is that interface builder actually creates a real instance of your view controller and then serializes that view. So, when you create the view controller in IB (add it to your project, basically), IB calls initWithNibName, but unless you have overridden the default encodeWithCoder:, any transient variables that you've set up there will be gone when the view is loaded from the nib (deserialized). This is generally okay since you usually want to set up your view with information specific to your applications current, running context rather than pre-determined initializers.

Even if you are programmatically creating views and view controllers, however, you can still put all the intiialization in viewDidLoad. This is often better because if your view ends up getting cached (unloaded) and then brought back onto the screen, viewDidLoad can be called again while your initializer wouldn't necessarily be (e.g., you create a view programmatically and push it onto a navigation controller's stack--later the view has been covered up and a memory warning is issued so the nav controller "unloads" your view but doesn't release the object--when the view comes back (other views get popped off), the nav controller will call viewDidLoad again so you can re-initialize, but initWithNib will not be called again *note that this is a rare case and most people's applications will die horribly for other reasons at this point anyway, however).

Source:
http://stackoverflow.com/questions/1240010/description-of-initwithnibname-awakefromnib-and-viewdidload

Tuesday, January 25, 2011

iPhone library

ASIHttpRequest Rest Request library:
http://allseeing-i.com/ASIHTTPRequest/

ASIHTTPRequest vs NSURLConnection:
http://stackoverflow.com/questions/4035451/asihttprequest-vs-nsurlconnection

http://allseeing-i.com/ASIHTTPRequest-1.5

URL Loading System Programming Guide
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html

JSON parser:
JSONKit (currently fastest):
https://github.com/johnezang/JSONKit

http://www.building43.com/blogs/2010/05/28/reading-rss-feeds-on-iphoneipad-with-asihttprequest-and-cocoa-rss/

Monday, January 24, 2011

成功开发iPhone软件的10个步骤

http://www.cnblogs.com/chen1987lei/archive/2010/03/10/1682131.html

Monday, December 13, 2010

"Pull down to refresh" Table view

http://stackoverflow.com/questions/3535827/is-there-a-interface-builder-esque-way-to-get-that-slick-pull-down-to-refresh-m

http://blog.jcmultimedia.com.au/2010/07/pull-down-refresh.html

https://github.com/enormego/EGOTableViewPullRefresh

http://www.waterworld.com.hk/zh-hant/blog/pull-down-refresh-table-view

http://www.cocoanetics.com/2009/12/how-to-make-a-pull-to-reload-tableview-just-like-tweetie-2/

iphone game tutorial

http://www.71squared.com/2009/03/iphone-game-programming-tutorial-1/

Friday, December 10, 2010

Dec 9, 2010 Objective-C Memory Management For Lazy People

http://interfacelab.com/objective-c-memory-management-for-lazy-people/

Thursday, December 9, 2010

Android vs iOS: A Developer’s Perspective

http://whereoscope.wordpress.com/2010/12/07/android-vs-ios-a-developers-perspective/

Tuesday, December 7, 2010

Nike Targets Women With New Workout App

http://mashable.com/2010/12/06/nike-training-club-iphone/

http://mashable.com/2010/12/06/mobile-app-development-pitfalls/

Monday, November 15, 2010

cocos2d tutorial

http://www.raywenderlich.com/352/how-to-make-a-simple-iphone-game-with-cocos2d-tutorial

http://www.coconutcollege.net/c201.html

http://maniacdev.com/search/cocos2d+iphone+tutorial

http://www.learn-cocos2d.com/2010/05/issues-images-pdf-downloads/

http://dev.iphonetw.net/thread-2578-1-2.html

http://blog.sina.com.cn/s/blog_537cabb80100ha75.html

Book
Learn iPhone and iPad cocos2d game development