Updated all the example codes for Xcode 6.1 (6A1052d)