Category Archives: iPod

Upgrading a Target from iPhone to iPad

If you have an existing iPhone application that you want to upgrade to run on iPad devices you need to upgrade the target that builds your iPhone application into a target that can build both an iPhone and an iPad … Continue reading

Posted in Apple, iPad, iPhone, iPod, Programming | Leave a comment

Luna, mi primer proyecto publicado

Bien, hoy ya por fin, después de casi una semana en periodo de aprobación, se ha confirmado Luna para publicar y empezar a vender en el Apple Store. ¿Qué es Luna? Blog this! Bookmark on Delicious Digg this post Recommend … Continue reading

Posted in Apple, Game Design, Game Industry, iPad, iPhone, iPod, Video Games | 2 Comments

Obj-C FPS counter and dt time for iPhone

// FPS static CFTimeInterval lastTime = CFAbsoluteTimeGetCurrent(); CFTimeInterval beginTime = CFAbsoluteTimeGetCurrent(); CFTimeInterval dt = beginTime – lastTime; static uint FPS = 0; static CFTimeInterval accum = 0; if ( accum >= 1.0 ) { NSLog(@”%d”, FPS); accum = 0.0; FPS … Continue reading

Posted in Graphics, iPad, iPhone, iPod, Programming | Leave a comment

Language (locale and country) in iPhone SDK

Little and fast-to-understand test for to know the language of iPhone device: NSString* language = [[NSLocale preferredLanguages] objectAtIndex:0]; // en NSString* countryCode = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]; // US // Console Log, only for debug… NSLog(language); NSLog(countryCode); BOOL result; if … Continue reading

Posted in iPad, iPhone, iPod, Programming | Leave a comment