Wednesday, January 26, 2011

Not enough frames in stack, framework unavailable

Error Message: "mi_cmd_stack_list_frames: Not enough frames in stack"
when debugging on a lower-version iOS device.

To solve this problem, go to menu "Project"-> target info ->

Thursday, January 06, 2011

Create Android sample project, Invalid project description

I found that android sample codes are not Eclipse projects. You have to create Eclipse projects from the sample codes by choosing "Create project from existing sample."

DO NOT set the sample code directory as your workspace, otherwise an error dialog will popup saying something like "Invalid project description, NotePad overlaps the location of another project: 'NotePad'"

Let's build the sample codes and run as Android application.

Monday, January 03, 2011

NSDateFormatter setDateFormat YYYY return wrong year

On the first day of 2011, I found that the date formatter return a wrong year.
2011-01-01 is converted ot "2010年01月01日"
while 2011-01-02 ,2011-01-03 is converted correctly.

It's because the format string YYYY represent the "Year (of "Week of Year"), used in ISO year-week calendar. May differ from calendar year."