updated for xcode6
sample app updates