As you may have noticed I like to keep a list on this site of open source ios apps.
Earlier I received a submission of the url to an open source iPhone app that updates on what is happening at the US congress in real time, and provides access to data about members of the US Congress.
You can find the source code for the newer native version here:
The source code for the previous Phonegap version can be found here:
You can find the app on iTunes here.
I’ll be adding it to the list of open source apps soon.
For those unfamiliar with the term behavioral driven development testing (BDD) frameworks are used so that you can test applications using logical English like syntax.
I have come across an open source framework designed specifically for iOS devices. What’s cool about this specific framework is that it can easily be attached to Objective-C methods, runs in the simulator, and let’s you store your different stories in different files so you could easily demonstrate your software’s ability to cope with different scenario’s.
Here’s an example of the types of a story used for testing:
Story: Example story showing the basic syntax.
Given Simon is working
Then I should be able to see abc and 5 in the log and say goodby at the end.
The framework is known as Simon, and was created by Derek Clarkson.
It can be found on Github here:
UPDATE: Got feedback about another framework known as Kiwi you may want to check out if this interests you.
I had never used one of these frameworks before, but it looks like a great way to illustrate an app does exactly what it should do. HKSAB58YGFWN
Another excellent week to be an iOS developer, and some big news in the department of iOS game development with the release of Cocos2D V1.0.0 and the opening of the Moai SDK beta to everyone. Also some great open source libraries and tutorials were shared.
If you have written a tutorial, open source library or tool that you would like to share you can submit the url here.
I’ve been contacted a number of times about advertising on this site so I decided to add support for BuySellAds, and added a section for small button ads. If interested you can check out the advertising page here.
Here are the resources from the last week in order of popularity:
Open Source: Easy Multistroke and Single Stroke Complex Gesture Recognition On iOS – A couple of great libraries if you are looking to quickly implement complex gesture within your app.
Open Source: iCade Library For Easy Integration In iOS Games – Library that allows you to easily support the iCade classic arcade box/controller for iPad. Makes a good example if you are trying to support a specific bluetooth interfacing device.
Tutorial: Manipulating Images With Touch Gestures – A tutorial with sample code demonstrating how to add touch features for image manipulation.
Tutorial: iOS Map Kit For Beginners Guide – A getting started tutorial for those beginning with the iOS map kit including a tutorial on displaying data from XML locations on a map without using any libraries outside of those included with the iOS SDK.
Open Source: Active Record For Core Data Library – A great open source project modeled after Ruby On Rail’s ActiveRecord for more straightforward data retrieval.
News: Cocos2D Game Engine v1.0.0 Released – News about the highly popular Cocos2D game engine finally reaching the v1.0.0 release.
Tutorial: iOS Multithreading With Grand Central Dispatch (GCD) Basics – An excellent step by step guide beginning with the basics on multithreading with iOS ‘s Grand Central Dispatch.
News: Moai SDK Game Development Kit Made Available To All – The lua based open source Moai SDK has now opened the beta for anyone to download and use.
Tutorial: Calculator App Style Glossy Buttons With Core Graphics – An explanation of the technique used to create buttons just like the calculator applications that come with iOS devices.
Tutorial: How To Use The iOS Keychain To Store Names And Passwords – A guide on using the iOS keychain in order to securely store usernames and passwords.
Thanks for reading, please bookmark and share this post!
The iPad has created quite a market for bluetooth peripherals and one of the coolest has to be the iCade.
The iCade is a mini arcade cabinet which you can fit your iPad within, and comes with a classic arcade style joystick, and buttons. The iCade uses bluetooth so it can actually work with other tablets or even with your desktop. I’ve almost talked myself into getting one by writing this article.
If you are unfamiliar with the iCade you can check out this video:
A pretty cool device, and at the cost of $99 you can imagine those using it are pretty hardcore iPad classic game enthusiasts.
Stuart Carnie has created a library for easy integration in iOS games, and includes a sample app.
You can find the project on Github here:
You can check out the iCade on ThinkGeek here:
iCade – Arcade Game Cabinet
The peripheral seems to have gained quite a following, and being able to advertise your game with iCade support might drive up it’s popularity. Easy to do with this open source library.
[via Alex Curylo]
If you’ve ever wondered how to code gesture recognition for complex shapes I’ve come across a couple of open source libraries that should be a great deal of help. This goes well beyond finger swiping.
This library is based on the $1 gesture recognizer which I remember being discussed quite a bit a few years back because not only did it run efficiently, but allowed you define the templates to recognize complex shapes very easily. The $1 gesture recognizer only recognizes 1 single stroke from the user. The $1 gesture recognizer was later expanded on to become the $N multistroke gesture recognizer.
Brit Gardner has taken the $N gesture recognizer and created an Objective-C implementation of the code.
You can read about complex gesture recognition, and why Brit decided to use the $N gesture recognizer on his site in these posts:
You can find Brit’s Github for the Objective-C $N gesture recognizer here:
Adam Preble has created an implementation of the $1 gesture recognizer which can be found here:
I’ve received e-mails a couple of times over the years asking about how some drawing games were created on the iPhone. If you are looking to make that kind of game this should help give you a head start.