Tag ‘iphone sdk’

How to add Global High Scores support to your iPhone Game without really trying

Mauro Dalu

global-high-scores-iphone-games-agon-openfeint-scoreloop2
If you recently developed an iPhone game like we did, you will likely want to implement a global hall of fame with worldwide high scores for the best, higher rank players of your game. Several drop-in solutions now exist. Here is a “hall of fame” for the “global high scores” services and web apps available for your next iPhone game.

Why is a leader board with high scores so important?
Casual gaming is the main trend in iPhone games. The iPhone and iPod Touch are great gaming devices, and the best selling apps on the App Store are iPhone games. This means there’s an ever growing community of casual gamers out there. This is a peculiar community since most iPhone games support one player only. The ones that allow for two (or more) players usually require a bluetooth or WiFi connection, however the nature of casual gaming makes it difficult to people around the world to gather at the same time to play. Therefore, shared high scores have are a great way to keep your users challenged and play an important role in making your game an addicting one.

The development of a global high scores features for your game will add a layer of complexity to your app though. You will require to handle an internet connection to a server that will host a database of nicknames, scores and dates, and you’ll need a web application to manage the database and a web service to communicate the data to the iPhone client application.

iPhone developers out there know this and they’ve come up with several different solutions for your problem.

Continue reading

iPhone OS and iPhone SDK 3.1 beta released tuesday night

Mauro Dalu

iphone SDK 3.1The first beta for iPhone OS 3.1 and a matching SDK were seeded to developers on Tuesday night, with around a dozen new extensions for the OpenGL ES graphics library that developers can use to improve graphics exclusively on the iPhone 3GS. Among the new features the ability to select video recording quality and a couple of new app interface classes. Xcode 3.1.3 has also been released.

Continue reading

Rhodes vs. iPhone SDK, which is better for me?

Mauro Dalu

rhodes-framework-mobile-developmentIn case your target is to deploy your mobile app to several mobile platforms — such as iPhone, Android, Blackberry, Symbian and Windows Mobile — we can provide custom mobile development and design your application so that it works well on all these mobile platforms with very little additional effort, using a new cross-platform mobile framework called Rhodes. Rhodes will allow us to create one application that will run on all platforms and re-skin it to look like a native application on each system, effectively reducing the overall development costs.

Sounds great, but does Rhodes add any additional hurdles that would not be encountered if we used iPhone SDK?

Continue reading

Model-View-Controller (MVC) in iPhone OS 3 thanks to Core Data

Mauro Dalu

core data mvc framework for iphone

By managing your application’s data model for you, Core Data significantly reduces the amount of code you have to write for your application.

The Core Data framework (CoreData.framework) is a technology for managing the data model of a Model-View-Controller application. Core Data is intended for use in applications where the data model is already highly structured. Instead of defining data structures programmatically, you use the graphical tools in Xcode to build a schema representing your data model. At runtime, instances of your data-model entities are created, managed, and made available through the Core Data framework.

If you are starting to develop a new application or are planning a significant update to an existing application, you should consider using Core Data. For an example of how to use Core Data in an iPhone application,

Continue reading

iPhone OS 3.0 Golden Master seed available to developers today

Mauro Dalu

sdk_heroToday, Apple announced at the WWDC ‘09 that the new iPhone OS 3.0 Golden Master with over 100 new features will be made available for download today for all developers.

If you didn’t yet, now it is a good time to upgrade your device and SDK and start working with the new SDK and OS.

http://developer.apple.com/iphone/program/sdk/

Continue reading

Bricked iPhone? Say it ain’t so…

Brad Midgley

I have a few suggestions for developers using bleeding edge systems on iPhone.

1. The OS will expire. Be sure you update to the latest available system before you, say, go out of town to Railsconf. We’ve been warned you don’t use OS3 on a production phone, but that’s easy advice to ignore when things seem to be going swimingly.

2. Download every beta OS for your device even if you don’t expect to use it. I found OS3 beta5 won’t install on this iPhone. I don’t think I’m alone here, but it might only affect the original iPhone. I had to go to a beta4 to get running again.

3. If you do find you can’t run the latest beta, mangle the Apple URL to download an older image. Since I didn’t have beta4 downloaded, what I did was copy Apple’s URL for the beta5 image, change the fives to fours, and

Continue reading

Can’t build for iPhone OS 2 or 2.2.x after iPhone SDK 3.0 beta 3 upgrade

Brad Midgley

After upgrading to iPhone SDK 3.0 beta3, I found all my Xcode projects only had two build options remaining: iPhone OS 3 Device and iPhone OS 3 Simulator.

I still need to build for multiple systems to test all the custom iPhone development we do at Surgeworks, but I also need iPhone OS 3.0 so I can diagnose issues and get all our Native Apps ready for the scheduled release of new iPhone models in June that will feature the new operating system.

Ivan Kalaica suggested how to fix this issue: to check out all projects again from SVN (Subversion). That worked, and all targets are now available in Xcode again.

Continue reading

SQLite wrappers on iPhone

Brad Midgley

On a recent project that needed to keep data in sqlite, I experimented with an implementation of ActiveRecord and also sqlitepersistentobjects. I had passed up a few others that were too complicated or licensed under something like the GPL that prevented commercial work.

While the ActiveRecord author has to get an award for the quickest replies to email, sqlitepersistentobjects was easiest to get working. You don’t even “set up” a database for this wrapper. When you save an object an sqlite database “somewhere” is updated with the right tables. This presumably also handles updates to the metadata but I didn’t play with that.

With iPhone OS 3.0 coming up in a few months and including CoreData, this becomes a question of what to use for legacy devices or projects released before summer. CoreData is going to become the standard way to persist data locally.

Continue reading

SQLite basics: How to get a simple db into an iPhone app

Radu Cojocaru

sqlite-iphone-baseSQLite is a small SQL database engine and it makes a good fit for iPhone apps. You can create a SQLite database and its tables using Base app: http://menial.co.uk/software/base/. Base is a lightweight Mac OS X application.

Continue reading