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.
I thought it would be rude to simply leave you hanging with an ninety percent complete tutorial and not cover the little tweaks i made before i released our app, iJingle. Obviously in these tutorials we have covered the functionality and how you can achieve the same thing in your own app but we haven’t covered some of the smaller tweaks i made before i released the iJingle app.
- Defining Supported Orientations
- Prevent Auto Rotating
- Adding Icon
- Launch Screen
- Prevent Toolbar Displaying
So as an added bonus to the series of tutorials i thought i would cover some of the little tidbits i’ve purposely left out of the past tutorials. The reasoning is simple, these are important parts in achieving what we achieved in the apps but they are important if you want to release your own app because the make the end user experience much better.
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.