added more code snippets found at https://github.com/jeksys/Xcode-codesnippets