Updated Swift sample project to get ready for the release of iOS 8.

Just some minor fixes for the changes that Apple implemented in the language.