24/7 twenty-four seven

iOS/OS X application programing topics.

2008-10-30から1日間の記事一覧

iPhoneで繰り返しループするサウンドを鳴らすコードのメモ (Audio Queueのサンプル)

iDevGames Forums 使い方 GBMusicTrack *song = [[GBMusicTrack alloc] initWithPath:[[NSBundle mainBundle] pathForResource:@"BackgroundMusic" ofType:@"mp3"]]; [song setRepeat:YES]; [song play]; GBMusicTrack.h // // GBMusicTrack.h // GameBase /…

iPhoneを振る動作を検出するコードのメモ

ios - How do I detect when someone shakes an iPhone? - Stack Overflow // Ensures the shake is strong enough on at least two axes before declaring it a shake. // "Strong enough" means "greater than a client-supplied threshold" in G's. stati…