Once again i lured our male readership in this with promise of free sexy ladies and i can’t help but wonder how many times you will fall for this before you realise we are not an escort service and these women are way out of your league.
Anyway moving on, we’ve done it. We set out to create a Jingle Bells app and it is now complete, so i thought i would briefly collect all of the links together for all 6 parts of the tutorial and publish one final post in the series with links to each part.
So far we’ve covered the detection of shake via the devices accelerometer and created one action which will play a sound when called. The only function we are missing in the app we have put together so far is the colour changing of the background and also the general user interface, which we showed in part 1.
In this tutorial we will cover the building of the function which, when called, will test the current background colour and show the opposite colour each time the action is called. Following this we will add in the user interface image we designed in the first part of the tutorial and at this point we should we should have the app we set out to create. So moving swiftly into our current project (you can download the progress so far in the last tutorial) lets get to it.
In the last part of this series we covered the coding involved in enabling gesture recognition in the app and we managed to successfully have the device recognise movement and determine whether or not the device was shaken. In this part we are going to move onto the coding of the function that will play the sound when the device is shaken.
We’ve already got the shake function writing to the log when the device is shaken so we will amend this function to instead run a function, a function that will play a short system sound which in this case is the bells sound.
As you may already know we are currently running a series of tutorials for creating your very own Jingle Bells iOS app. The app is simple, you shake the device and it makes a jingling noise, the idea is so simple i thought there is no way Apple would ever accept the app into the App Store.
Well as it turns out they are not too fussed by the apps lack of functionality and simplicity and have accepted the app for download.
This has one massive advantage, this being that you can actually download and try out the app you will be making in the series of tutorials and once you have created your app you can be assured that you too can have your very own Jingle Bells app accepted into the iTunes App store.
Continuing from Part 1 in this series we will cover the coding stage of the Jingle Bells app and walk you through what each element does and how it affects the app.
In the last part of this tutorial we covered the interface and planning of the Jingle Bells app, now we move onto the first part of development in the app and create the action that will be called when the device is shaken.