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

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!

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!

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.

2011年5月11日 星期三

[WebApp] 隱藏Youtube下方控制列 ( Hide youtube control bar )

從以下網頁看來的
http://views-under-construction.blogspot.com/2006/01/myspace-music-player-hide-remove-play.html#videoMsRemoveControls

非常酷! 直接把影片往下移, 讓控制列跑出顯示框架就可以了, 真是直覺的方法.

2011年5月7日 星期六

[iAPP] 排名

使用暴力法推銷
效果果然不錯= =
但是可以維持多久才是真正的問題

恩.... 要往外打出國際簡直就難如登天啊
每次App更新能有50組Promo Code
靠這50組要在台灣提升排名輕而易舉
這樣只要App夠好夠特別
能被別人看到的情況下 就能維持下載率 保持一定排名

但是在國外的熱門區= =
50組根本就不夠
大概要500組才有可能衝到遊戲類的Top 10 (這只是隨便推測, 恐怕遠超出這數目)
在這種情況下
只能想辦法用其他方法打廣告
或許利用Twitter或論壇的效益會更大?

不管怎樣
接下來得研究一下國外都怎麼行銷才行= =

[iAPP] Trick Your Friend (拍拍怪表情)

連結 : http://itunes.apple.com/tw/app/trick-your-friend/id431513162?mt=8

一個利用一個網頁,邀請朋友看,趁朋友觀看的時候,利用前鏡頭捕捉朋友表情的App,
不論是大笑、害羞、尷尬,
各種表情都有機會讓你抓到,再上傳到facebook和朋友分享,
至於要讓朋友看什麼網頁呢!! 這就得靠你找出來了,
(預設的網頁比較low,希望大家別介意orz)