Fei on May 11th, 2010

如我所料,Android终于市场占有率超过了iPhone。不过当然了,iPhone马上更新,到时候就又是一场硬仗。坐山观虎斗,67月份当前手机协约结束了,换个手机。嘿嘿。

Continue reading about [zz]Android取代iPhone…

Fei on February 9th, 2010

http://cocoachina.com/ 大量iPhone开发资料,教学,经验,还有自曝。 http://www.javaeye.com/forums/board/mobile iPhone开发论坛,人气鼎盛,大量自曝,还有Android的讨论 http://developer.apple.com/iphone/ 苹果iPhone开发官方主页,提供大量实例、文档和教学视频 http://www.stanford.edu/class/cs193p/ 斯坦福大学的iPhone课程,2009年4~6月,有pdf和视频下载 http://bit.ly/RuaKq 飞机游戏iFighter的作者dr_watson写的iPhone游戏开发经典教学系列,有源码 http://www.iphoneside.com/ iPhone达人的博客,很多有价值的资源下载,新闻和教程 http://lichen1985.com/blog/ iPhone应用的作者,雨雪霏霏的iPhone博客,很多开发手记和心得 http://blog.liuhongwei.cn/category/iphone/ iPhone开发博客,提供教学文章,经验分享,还有GAE http://www.javaeye.com/topic/422948 iPhone日本市场高手的自曝贴,第1个月就赚了2千刀,大量详细的数字和图片 http://dev.iphonetw.net/ 台湾iPhone开发者论坛,有些教学文章和讨论

Continue reading about 10个iPhone开发网站、论坛、博客

Fei on January 27th, 2010

Very good article, from http://www.neverreadpassively.com/2009/03/review-of-iphone-3d-engines.html I need a 3D engine for my iPhone project. I’ve hacked together my own 2D engines for rendering and physics in the past, but I have done very little OpenGL, and all the time I spent hacking around in the Quake, Quake2, Quake3 engines was focused on game logic and [...]

Continue reading about Review of 3D Engines for the iPhone

Fei on December 31st, 2009

Saving NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; // saving an NSString [prefs setObject:@"TextToSave" forKey:@"keyToLookupString"]; // saving an NSInteger [prefs setInteger:42 forKey:@"integerKey"]; // saving a Double [prefs setDouble:3.1415 forKey:@"doubleKey"]; // saving a Float [prefs setFloat:1.2345678 forKey:@"floatKey"]; // This is suggested to synch prefs, but is not needed (I didn’t put it in my tut) [prefs synchronize]; Retrieving [...]

Continue reading about [zz]How to use NSUserDefault to save and load data

Fei on August 23rd, 2009

Recently I’ve been using the Cocos2d iPhone library for game development on the iPhone, and it’s a really fantastic library to work with. There isn’t a whole lot of available source to look at though, so I’ve put together a few snippets and thoughts about usage. Key Classes Snippet 1: Making a Menu Snippet 2: Directing [...]

Continue reading about Notes on Cocos2d iPhone Development

I was creating an iPhone widget icon for the Jotlet app (primarily for fun) and I noticed a few things and thought I’d share them with you, and create a psd kit for anyone wanting to do the same thing. I’m all about making things look uniform, so I used the traditional Apple iPhone app [...]

Continue reading about iPhone icon style .psd dev kit – iphone的app的图标psd文件

1. Create a C structure to hold the states of the the touchable object, so that we can control the status and behavior of the object typedef struct { BOOL rotstop;                  // stop self rotation BOOL touchInside;              // finger tap inside of the object ? BOOL scalestart;               // start to scale the obejct ? CGPoint pos;                   // position [...]

Continue reading about How to enable multi-touch for OpenGL ES application?

Fei on August 8th, 2009

A 2 week, 10,000+ lines coding done by Apple to demonstrate the graphics and audio capabilities of the iPhone for gaming. YouTube: iPhone SDK Demo – Touch Fighter The link may only be for Tech Talk attendees or ADC Member but if it works for you, enjoy. Here is the link to download. https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?fileID=24200 from:http://iphonesdkdev.blogspot.com/2008/12/touch-fighter-2-source-code.html

Continue reading about iPhone Game: Touch Fighter 2 source code

Fei on August 8th, 2009

Xcode Tips 1. Read the Xcode Workspace Guide, it is available after launching Xcode. It is under Help -> Xcode Workspace Guide 2. Make full use of Snapshots to keep different versions of the project. It is under File -> Make Snapshot 3. Make full use of code completion. It is under Xcode Preferences > [...]

Continue reading about Useful Xcode Tips

Fei on August 4th, 2009

You don’t need to use a lot of fancy routines to subscribe to data generated by the iPhone’s built in accelerometer. A single UIApplication delegate lets you know whenever the iPhone has updated its tilt data. When you add a method for (void)acceleratedInX:(float)xx Y:(float)yy Z:(float)zz to any UIApplication, the iPhone sends regular messages to your application [...]

Continue reading about iPhone Coding: Using the Accelerometer