This is just some iOS sample code that I'm having some problems with.