If you need gcc or other default tools ( gcc: command not found ), just download Command Line Tools for Xcode, it's maintained by Apple developer center, and easy to install.
Downloads for Apple Developers : https://developer.apple.com/downloads/index.action
Reference : http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/
2013年2月9日 星期六
2012年10月3日 星期三
[iApp] SkyTapping is now ready for sale !
Have you ever let balloons flee away from your hand and desperately watched it disappearing in the sky when you were a child? So it is time to bang the balloons before they go up to the space.
Our Fan Quote
-SkyTapping is the best light game for killing time on metro or bus.
-It is quite easy to master the game, yet to get the higher score is a little bit challenging.
-Fun and Nice game wiz enjoyable sound and cute picture.
How to play:
1. Tap the screen anywhere with one finger to pop the single balloon.
2. Using two and three fingers to burst the double and triple one.
3. Each color balloon(s) flees away from the sky will cost a heart, which you own five in the beginning.
4. Hit the hot air balloon, make it countdown to zero and get the special item.
5. Special item in the bottom of the screen could assist you boost your score, destroy or slow down the balloons.
6. Have fun of being a balloons killer and reach the higher score as possible.
Game Feature:
-Unique Multi-touch Game, yet easy to play.
-Facebook and Twitter Integration
-Versus mode through Bluetooth
-Game Center Support
Requirement:
-Compatible with iPod2,3,4 iPhone3,3GS,4,4S
Requirement: iOS 5+
If you have any problems, please contact us for support.
shiing989@gmail.com
2012年6月20日 星期三
Make your svn diff colorful
svn diff | view -
Note : This will use the syntax color in vim.
Reference : http://www.commandlinefu.com/commands/view/2420/colored-svn-diff ( More choices from here )
Note : This will use the syntax color in vim.
Reference : http://www.commandlinefu.com/commands/view/2420/colored-svn-diff ( More choices from here )
2011年11月5日 星期六
[iApp] Report : Bonnie's Brunch
Bonnie's Brunch is a great game developed by Taiwan. It's really addicted. Here is some experience sharings from the author, how they start, how they develop. Enjoy!
Reference : http://gameape.tw/topic/18/topic-18.php
http://blog.monkeypotion.net/gamedev/journal/postmortem-bonnies-brunch
Reference : http://gameape.tw/topic/18/topic-18.php
http://blog.monkeypotion.net/gamedev/journal/postmortem-bonnies-brunch
2011年11月2日 星期三
[iPhone] Check iOS device type/ device family
Reference from : http://www.cocos2d-iphone.org/forum/topic/8233
To get the device family for iPhone or iPad or iPod touch, use UIDevice is not enough, it cannot get the really device type. Need to use sysctlbyname() for more information.
/////////////////////////////////////////////////////////////////////////////////////
In DeviceHardware.h file
// Predefine for different devices
#define IPHONE_1G @"iPhone1,1"
#define IPHONE_3G @"iPhone1,2"
#define IPHONE_3GS @"iPhone2,1"
#define IPHONE_4 @"iPhone3,1"
#define IPAD @"iPad1,1"
#define IPOD_TOUCH_1G @"iPod1,1"
#define IPOD_TOUCH_2G @"iPod2,1"
#define IPOD_TOUCH_3G @"iPod3,1"
#define I386 @"Simulator"
@interface DeviceHardware : NSObject
+ (NSString *) platform;
/////////////////////////////////////////////////////////////////////////////////////
In DeviceHardware.m
#import "DeviceHardware.h"
#include
#include
@implementation DeviceHardware
+ (NSString *) platform {
size_t size;
sysctlbyname("hw.machine", NULL, &size, NULL, 0);
char *machine = malloc(size);
sysctlbyname("hw.machine", machine, &size, NULL, 0);
NSString *platform = [NSString stringWithCString:machine encoding:NSUTF8StringEncoding];
free(machine);
return platform;
}
/////////////////////////////////////////////////////////////////////////////////////
Make a little change from the original one. With predefinition, it might be easier to use. If anyone has better solution, please feel free to let me know!
To get the device family for iPhone or iPad or iPod touch, use UIDevice is not enough, it cannot get the really device type. Need to use sysctlbyname() for more information.
/////////////////////////////////////////////////////////////////////////////////////
In DeviceHardware.h file
// Predefine for different devices
#define IPHONE_1G @"iPhone1,1"
#define IPHONE_3G @"iPhone1,2"
#define IPHONE_3GS @"iPhone2,1"
#define IPHONE_4 @"iPhone3,1"
#define IPAD @"iPad1,1"
#define IPOD_TOUCH_1G @"iPod1,1"
#define IPOD_TOUCH_2G @"iPod2,1"
#define IPOD_TOUCH_3G @"iPod3,1"
#define I386 @"Simulator"
@interface DeviceHardware : NSObject
+ (NSString *) platform;
/////////////////////////////////////////////////////////////////////////////////////
In DeviceHardware.m
#import "DeviceHardware.h"
#include
#include
@implementation DeviceHardware
+ (NSString *) platform {
size_t size;
sysctlbyname("hw.machine", NULL, &size, NULL, 0);
char *machine = malloc(size);
sysctlbyname("hw.machine", machine, &size, NULL, 0);
NSString *platform = [NSString stringWithCString:machine encoding:NSUTF8StringEncoding];
free(machine);
return platform;
}
/////////////////////////////////////////////////////////////////////////////////////
Make a little change from the original one. With predefinition, it might be easier to use. If anyone has better solution, please feel free to let me know!
2011年10月24日 星期一
[iPhone] iOS Data Stors Guidelines
1. Only documents and other data that is user-generated, or that cannot otherwise be recreated by your application, should be stored in the /Documents directory and will be automatically backed up by iCloud.
2. Data that can be downloaded again or regenerated should be stored in the /Library/Caches directory. Examples of files you should put in the Caches directory include database cache files and downloadable content, such as that used by magazine, newspaper, and map applications.
3. Data that is used only temporarily should be stored in the /tmp directory. Although these files are not backed up to iCloud, remember to delete those files when you are done with them so that they do not continue to consume space on the user’s device.
Well, based on this, i guess lots of developers using "example" have to update their apps!
2. Data that can be downloaded again or regenerated should be stored in the /Library/Caches directory. Examples of files you should put in the Caches directory include database cache files and downloadable content, such as that used by magazine, newspaper, and map applications.
3. Data that is used only temporarily should be stored in the /tmp directory. Although these files are not backed up to iCloud, remember to delete those files when you are done with them so that they do not continue to consume space on the user’s device.
Well, based on this, i guess lots of developers using "example" have to update their apps!
2011年10月20日 星期四
[iPhone] Based on iCloud, need to change the data storage directory
iOS data storage guideline :
https://developer.apple.com/icloud/documentation/data-storage/
Problem :
Since iCloud will sync the data in 'Documents' directory, we need to change the data storage directory to 'Librarys/Caches/ if it's not users related data.
Solution :
Replace 'NSDocumentDirectory' by 'NSCachesDirectory' while saving data.
https://developer.apple.com/icloud/documentation/data-storage/
Problem :
Since iCloud will sync the data in 'Documents' directory, we need to change the data storage directory to 'Librarys/Caches/ if it's not users related data.
Solution :
Replace 'NSDocumentDirectory' by 'NSCachesDirectory' while saving data.
訂閱:
文章 (Atom)

