├── .gitignore ├── LICENSE ├── README.md ├── SecretAnimation.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── marina.xcuserdatad │ │ ├── UserInterfaceState.xcuserstate │ │ └── WorkspaceSettings.xcsettings └── xcuserdata │ └── marina.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── SecretAnimation.xcscheme │ └── xcschememanagement.plist ├── SecretAnimation ├── Base.lproj │ └── Main.storyboard ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── NTRAppDelegate.h ├── NTRAppDelegate.m ├── NTRViewController.h ├── NTRViewController.m ├── SecretAnimation-Info.plist ├── SecretAnimation-Prefix.pch ├── en.lproj │ └── InfoPlist.strings └── main.m └── SecretAnimationTests ├── SecretAnimationTests-Info.plist ├── SecretAnimationTests.m └── en.lproj └── InfoPlist.strings /.gitignore: -------------------------------------------------------------------------------- 1 | # CocoaPods 2 | # 3 | # We recommend against adding the Pods directory to your .gitignore. However 4 | # you should judge for yourself, the pros and cons are mentioned at: 5 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control? 6 | # 7 | # Pods/ 8 | 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Natasha Murashev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | SecretTextAnimationExample 2 | ========================== 3 | 4 | Secret iOS App Text Animation Example 5 | 6 | Blog post: http://natashatherobot.com/secret-ios-app-text-animation/ 7 | -------------------------------------------------------------------------------- /SecretAnimation.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 9CDC5FE418FB246F00720517 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9CDC5FE318FB246F00720517 /* Foundation.framework */; }; 11 | 9CDC5FE618FB246F00720517 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9CDC5FE518FB246F00720517 /* CoreGraphics.framework */; }; 12 | 9CDC5FE818FB246F00720517 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9CDC5FE718FB246F00720517 /* UIKit.framework */; }; 13 | 9CDC5FEE18FB246F00720517 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9CDC5FEC18FB246F00720517 /* InfoPlist.strings */; }; 14 | 9CDC5FF018FB246F00720517 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9CDC5FEF18FB246F00720517 /* main.m */; }; 15 | 9CDC5FF418FB246F00720517 /* NTRAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9CDC5FF318FB246F00720517 /* NTRAppDelegate.m */; }; 16 | 9CDC5FF718FB247000720517 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9CDC5FF518FB246F00720517 /* Main.storyboard */; }; 17 | 9CDC5FFA18FB247000720517 /* NTRViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9CDC5FF918FB247000720517 /* NTRViewController.m */; }; 18 | 9CDC5FFC18FB247000720517 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9CDC5FFB18FB247000720517 /* Images.xcassets */; }; 19 | 9CDC600318FB247000720517 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9CDC600218FB247000720517 /* XCTest.framework */; }; 20 | 9CDC600418FB247000720517 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9CDC5FE318FB246F00720517 /* Foundation.framework */; }; 21 | 9CDC600518FB247000720517 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9CDC5FE718FB246F00720517 /* UIKit.framework */; }; 22 | 9CDC600D18FB247000720517 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9CDC600B18FB247000720517 /* InfoPlist.strings */; }; 23 | 9CDC600F18FB247000720517 /* SecretAnimationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9CDC600E18FB247000720517 /* SecretAnimationTests.m */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | 9CDC600618FB247000720517 /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = 9CDC5FD818FB246F00720517 /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 9CDC5FDF18FB246F00720517; 32 | remoteInfo = SecretAnimation; 33 | }; 34 | /* End PBXContainerItemProxy section */ 35 | 36 | /* Begin PBXFileReference section */ 37 | 9CDC5FE018FB246F00720517 /* SecretAnimation.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SecretAnimation.app; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 9CDC5FE318FB246F00720517 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 39 | 9CDC5FE518FB246F00720517 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 40 | 9CDC5FE718FB246F00720517 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 41 | 9CDC5FEB18FB246F00720517 /* SecretAnimation-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SecretAnimation-Info.plist"; sourceTree = ""; }; 42 | 9CDC5FED18FB246F00720517 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 43 | 9CDC5FEF18FB246F00720517 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 44 | 9CDC5FF118FB246F00720517 /* SecretAnimation-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SecretAnimation-Prefix.pch"; sourceTree = ""; }; 45 | 9CDC5FF218FB246F00720517 /* NTRAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NTRAppDelegate.h; sourceTree = ""; }; 46 | 9CDC5FF318FB246F00720517 /* NTRAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NTRAppDelegate.m; sourceTree = ""; }; 47 | 9CDC5FF618FB247000720517 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 48 | 9CDC5FF818FB247000720517 /* NTRViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NTRViewController.h; sourceTree = ""; }; 49 | 9CDC5FF918FB247000720517 /* NTRViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NTRViewController.m; sourceTree = ""; }; 50 | 9CDC5FFB18FB247000720517 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 51 | 9CDC600118FB247000720517 /* SecretAnimationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SecretAnimationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 9CDC600218FB247000720517 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 53 | 9CDC600A18FB247000720517 /* SecretAnimationTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SecretAnimationTests-Info.plist"; sourceTree = ""; }; 54 | 9CDC600C18FB247000720517 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 55 | 9CDC600E18FB247000720517 /* SecretAnimationTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SecretAnimationTests.m; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 9CDC5FDD18FB246F00720517 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 9CDC5FE618FB246F00720517 /* CoreGraphics.framework in Frameworks */, 64 | 9CDC5FE818FB246F00720517 /* UIKit.framework in Frameworks */, 65 | 9CDC5FE418FB246F00720517 /* Foundation.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | 9CDC5FFE18FB247000720517 /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | 9CDC600318FB247000720517 /* XCTest.framework in Frameworks */, 74 | 9CDC600518FB247000720517 /* UIKit.framework in Frameworks */, 75 | 9CDC600418FB247000720517 /* Foundation.framework in Frameworks */, 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | /* End PBXFrameworksBuildPhase section */ 80 | 81 | /* Begin PBXGroup section */ 82 | 9CDC5FD718FB246F00720517 = { 83 | isa = PBXGroup; 84 | children = ( 85 | 9CDC5FE918FB246F00720517 /* SecretAnimation */, 86 | 9CDC600818FB247000720517 /* SecretAnimationTests */, 87 | 9CDC5FE218FB246F00720517 /* Frameworks */, 88 | 9CDC5FE118FB246F00720517 /* Products */, 89 | ); 90 | sourceTree = ""; 91 | }; 92 | 9CDC5FE118FB246F00720517 /* Products */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 9CDC5FE018FB246F00720517 /* SecretAnimation.app */, 96 | 9CDC600118FB247000720517 /* SecretAnimationTests.xctest */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | 9CDC5FE218FB246F00720517 /* Frameworks */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 9CDC5FE318FB246F00720517 /* Foundation.framework */, 105 | 9CDC5FE518FB246F00720517 /* CoreGraphics.framework */, 106 | 9CDC5FE718FB246F00720517 /* UIKit.framework */, 107 | 9CDC600218FB247000720517 /* XCTest.framework */, 108 | ); 109 | name = Frameworks; 110 | sourceTree = ""; 111 | }; 112 | 9CDC5FE918FB246F00720517 /* SecretAnimation */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 9CDC5FF218FB246F00720517 /* NTRAppDelegate.h */, 116 | 9CDC5FF318FB246F00720517 /* NTRAppDelegate.m */, 117 | 9CDC5FF518FB246F00720517 /* Main.storyboard */, 118 | 9CDC5FF818FB247000720517 /* NTRViewController.h */, 119 | 9CDC5FF918FB247000720517 /* NTRViewController.m */, 120 | 9CDC5FFB18FB247000720517 /* Images.xcassets */, 121 | 9CDC5FEA18FB246F00720517 /* Supporting Files */, 122 | ); 123 | path = SecretAnimation; 124 | sourceTree = ""; 125 | }; 126 | 9CDC5FEA18FB246F00720517 /* Supporting Files */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 9CDC5FEB18FB246F00720517 /* SecretAnimation-Info.plist */, 130 | 9CDC5FEC18FB246F00720517 /* InfoPlist.strings */, 131 | 9CDC5FEF18FB246F00720517 /* main.m */, 132 | 9CDC5FF118FB246F00720517 /* SecretAnimation-Prefix.pch */, 133 | ); 134 | name = "Supporting Files"; 135 | sourceTree = ""; 136 | }; 137 | 9CDC600818FB247000720517 /* SecretAnimationTests */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 9CDC600E18FB247000720517 /* SecretAnimationTests.m */, 141 | 9CDC600918FB247000720517 /* Supporting Files */, 142 | ); 143 | path = SecretAnimationTests; 144 | sourceTree = ""; 145 | }; 146 | 9CDC600918FB247000720517 /* Supporting Files */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 9CDC600A18FB247000720517 /* SecretAnimationTests-Info.plist */, 150 | 9CDC600B18FB247000720517 /* InfoPlist.strings */, 151 | ); 152 | name = "Supporting Files"; 153 | sourceTree = ""; 154 | }; 155 | /* End PBXGroup section */ 156 | 157 | /* Begin PBXNativeTarget section */ 158 | 9CDC5FDF18FB246F00720517 /* SecretAnimation */ = { 159 | isa = PBXNativeTarget; 160 | buildConfigurationList = 9CDC601218FB247000720517 /* Build configuration list for PBXNativeTarget "SecretAnimation" */; 161 | buildPhases = ( 162 | 9CDC5FDC18FB246F00720517 /* Sources */, 163 | 9CDC5FDD18FB246F00720517 /* Frameworks */, 164 | 9CDC5FDE18FB246F00720517 /* Resources */, 165 | ); 166 | buildRules = ( 167 | ); 168 | dependencies = ( 169 | ); 170 | name = SecretAnimation; 171 | productName = SecretAnimation; 172 | productReference = 9CDC5FE018FB246F00720517 /* SecretAnimation.app */; 173 | productType = "com.apple.product-type.application"; 174 | }; 175 | 9CDC600018FB247000720517 /* SecretAnimationTests */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = 9CDC601518FB247000720517 /* Build configuration list for PBXNativeTarget "SecretAnimationTests" */; 178 | buildPhases = ( 179 | 9CDC5FFD18FB247000720517 /* Sources */, 180 | 9CDC5FFE18FB247000720517 /* Frameworks */, 181 | 9CDC5FFF18FB247000720517 /* Resources */, 182 | ); 183 | buildRules = ( 184 | ); 185 | dependencies = ( 186 | 9CDC600718FB247000720517 /* PBXTargetDependency */, 187 | ); 188 | name = SecretAnimationTests; 189 | productName = SecretAnimationTests; 190 | productReference = 9CDC600118FB247000720517 /* SecretAnimationTests.xctest */; 191 | productType = "com.apple.product-type.bundle.unit-test"; 192 | }; 193 | /* End PBXNativeTarget section */ 194 | 195 | /* Begin PBXProject section */ 196 | 9CDC5FD818FB246F00720517 /* Project object */ = { 197 | isa = PBXProject; 198 | attributes = { 199 | CLASSPREFIX = NTR; 200 | LastUpgradeCheck = 0510; 201 | ORGANIZATIONNAME = NatashaTheRobot; 202 | TargetAttributes = { 203 | 9CDC600018FB247000720517 = { 204 | TestTargetID = 9CDC5FDF18FB246F00720517; 205 | }; 206 | }; 207 | }; 208 | buildConfigurationList = 9CDC5FDB18FB246F00720517 /* Build configuration list for PBXProject "SecretAnimation" */; 209 | compatibilityVersion = "Xcode 3.2"; 210 | developmentRegion = English; 211 | hasScannedForEncodings = 0; 212 | knownRegions = ( 213 | en, 214 | Base, 215 | ); 216 | mainGroup = 9CDC5FD718FB246F00720517; 217 | productRefGroup = 9CDC5FE118FB246F00720517 /* Products */; 218 | projectDirPath = ""; 219 | projectRoot = ""; 220 | targets = ( 221 | 9CDC5FDF18FB246F00720517 /* SecretAnimation */, 222 | 9CDC600018FB247000720517 /* SecretAnimationTests */, 223 | ); 224 | }; 225 | /* End PBXProject section */ 226 | 227 | /* Begin PBXResourcesBuildPhase section */ 228 | 9CDC5FDE18FB246F00720517 /* Resources */ = { 229 | isa = PBXResourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 9CDC5FFC18FB247000720517 /* Images.xcassets in Resources */, 233 | 9CDC5FEE18FB246F00720517 /* InfoPlist.strings in Resources */, 234 | 9CDC5FF718FB247000720517 /* Main.storyboard in Resources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | 9CDC5FFF18FB247000720517 /* Resources */ = { 239 | isa = PBXResourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 9CDC600D18FB247000720517 /* InfoPlist.strings in Resources */, 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | }; 246 | /* End PBXResourcesBuildPhase section */ 247 | 248 | /* Begin PBXSourcesBuildPhase section */ 249 | 9CDC5FDC18FB246F00720517 /* Sources */ = { 250 | isa = PBXSourcesBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | 9CDC5FF018FB246F00720517 /* main.m in Sources */, 254 | 9CDC5FF418FB246F00720517 /* NTRAppDelegate.m in Sources */, 255 | 9CDC5FFA18FB247000720517 /* NTRViewController.m in Sources */, 256 | ); 257 | runOnlyForDeploymentPostprocessing = 0; 258 | }; 259 | 9CDC5FFD18FB247000720517 /* Sources */ = { 260 | isa = PBXSourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | 9CDC600F18FB247000720517 /* SecretAnimationTests.m in Sources */, 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | /* End PBXSourcesBuildPhase section */ 268 | 269 | /* Begin PBXTargetDependency section */ 270 | 9CDC600718FB247000720517 /* PBXTargetDependency */ = { 271 | isa = PBXTargetDependency; 272 | target = 9CDC5FDF18FB246F00720517 /* SecretAnimation */; 273 | targetProxy = 9CDC600618FB247000720517 /* PBXContainerItemProxy */; 274 | }; 275 | /* End PBXTargetDependency section */ 276 | 277 | /* Begin PBXVariantGroup section */ 278 | 9CDC5FEC18FB246F00720517 /* InfoPlist.strings */ = { 279 | isa = PBXVariantGroup; 280 | children = ( 281 | 9CDC5FED18FB246F00720517 /* en */, 282 | ); 283 | name = InfoPlist.strings; 284 | sourceTree = ""; 285 | }; 286 | 9CDC5FF518FB246F00720517 /* Main.storyboard */ = { 287 | isa = PBXVariantGroup; 288 | children = ( 289 | 9CDC5FF618FB247000720517 /* Base */, 290 | ); 291 | name = Main.storyboard; 292 | sourceTree = ""; 293 | }; 294 | 9CDC600B18FB247000720517 /* InfoPlist.strings */ = { 295 | isa = PBXVariantGroup; 296 | children = ( 297 | 9CDC600C18FB247000720517 /* en */, 298 | ); 299 | name = InfoPlist.strings; 300 | sourceTree = ""; 301 | }; 302 | /* End PBXVariantGroup section */ 303 | 304 | /* Begin XCBuildConfiguration section */ 305 | 9CDC601018FB247000720517 /* Debug */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 310 | CLANG_CXX_LIBRARY = "libc++"; 311 | CLANG_ENABLE_MODULES = YES; 312 | CLANG_ENABLE_OBJC_ARC = YES; 313 | CLANG_WARN_BOOL_CONVERSION = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 316 | CLANG_WARN_EMPTY_BODY = YES; 317 | CLANG_WARN_ENUM_CONVERSION = YES; 318 | CLANG_WARN_INT_CONVERSION = YES; 319 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 320 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 321 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 322 | COPY_PHASE_STRIP = NO; 323 | GCC_C_LANGUAGE_STANDARD = gnu99; 324 | GCC_DYNAMIC_NO_PIC = NO; 325 | GCC_OPTIMIZATION_LEVEL = 0; 326 | GCC_PREPROCESSOR_DEFINITIONS = ( 327 | "DEBUG=1", 328 | "$(inherited)", 329 | ); 330 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 331 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 332 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 333 | GCC_WARN_UNDECLARED_SELECTOR = YES; 334 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 335 | GCC_WARN_UNUSED_FUNCTION = YES; 336 | GCC_WARN_UNUSED_VARIABLE = YES; 337 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 338 | ONLY_ACTIVE_ARCH = YES; 339 | SDKROOT = iphoneos; 340 | }; 341 | name = Debug; 342 | }; 343 | 9CDC601118FB247000720517 /* Release */ = { 344 | isa = XCBuildConfiguration; 345 | buildSettings = { 346 | ALWAYS_SEARCH_USER_PATHS = NO; 347 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 348 | CLANG_CXX_LIBRARY = "libc++"; 349 | CLANG_ENABLE_MODULES = YES; 350 | CLANG_ENABLE_OBJC_ARC = YES; 351 | CLANG_WARN_BOOL_CONVERSION = YES; 352 | CLANG_WARN_CONSTANT_CONVERSION = YES; 353 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 354 | CLANG_WARN_EMPTY_BODY = YES; 355 | CLANG_WARN_ENUM_CONVERSION = YES; 356 | CLANG_WARN_INT_CONVERSION = YES; 357 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 358 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 359 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 360 | COPY_PHASE_STRIP = YES; 361 | ENABLE_NS_ASSERTIONS = NO; 362 | GCC_C_LANGUAGE_STANDARD = gnu99; 363 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 364 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 365 | GCC_WARN_UNDECLARED_SELECTOR = YES; 366 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 367 | GCC_WARN_UNUSED_FUNCTION = YES; 368 | GCC_WARN_UNUSED_VARIABLE = YES; 369 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 370 | SDKROOT = iphoneos; 371 | VALIDATE_PRODUCT = YES; 372 | }; 373 | name = Release; 374 | }; 375 | 9CDC601318FB247000720517 /* Debug */ = { 376 | isa = XCBuildConfiguration; 377 | buildSettings = { 378 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 379 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 380 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 381 | GCC_PREFIX_HEADER = "SecretAnimation/SecretAnimation-Prefix.pch"; 382 | INFOPLIST_FILE = "SecretAnimation/SecretAnimation-Info.plist"; 383 | PRODUCT_NAME = "$(TARGET_NAME)"; 384 | WRAPPER_EXTENSION = app; 385 | }; 386 | name = Debug; 387 | }; 388 | 9CDC601418FB247000720517 /* Release */ = { 389 | isa = XCBuildConfiguration; 390 | buildSettings = { 391 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 392 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 393 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 394 | GCC_PREFIX_HEADER = "SecretAnimation/SecretAnimation-Prefix.pch"; 395 | INFOPLIST_FILE = "SecretAnimation/SecretAnimation-Info.plist"; 396 | PRODUCT_NAME = "$(TARGET_NAME)"; 397 | WRAPPER_EXTENSION = app; 398 | }; 399 | name = Release; 400 | }; 401 | 9CDC601618FB247000720517 /* Debug */ = { 402 | isa = XCBuildConfiguration; 403 | buildSettings = { 404 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SecretAnimation.app/SecretAnimation"; 405 | FRAMEWORK_SEARCH_PATHS = ( 406 | "$(SDKROOT)/Developer/Library/Frameworks", 407 | "$(inherited)", 408 | "$(DEVELOPER_FRAMEWORKS_DIR)", 409 | ); 410 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 411 | GCC_PREFIX_HEADER = "SecretAnimation/SecretAnimation-Prefix.pch"; 412 | GCC_PREPROCESSOR_DEFINITIONS = ( 413 | "DEBUG=1", 414 | "$(inherited)", 415 | ); 416 | INFOPLIST_FILE = "SecretAnimationTests/SecretAnimationTests-Info.plist"; 417 | PRODUCT_NAME = "$(TARGET_NAME)"; 418 | TEST_HOST = "$(BUNDLE_LOADER)"; 419 | WRAPPER_EXTENSION = xctest; 420 | }; 421 | name = Debug; 422 | }; 423 | 9CDC601718FB247000720517 /* Release */ = { 424 | isa = XCBuildConfiguration; 425 | buildSettings = { 426 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SecretAnimation.app/SecretAnimation"; 427 | FRAMEWORK_SEARCH_PATHS = ( 428 | "$(SDKROOT)/Developer/Library/Frameworks", 429 | "$(inherited)", 430 | "$(DEVELOPER_FRAMEWORKS_DIR)", 431 | ); 432 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 433 | GCC_PREFIX_HEADER = "SecretAnimation/SecretAnimation-Prefix.pch"; 434 | INFOPLIST_FILE = "SecretAnimationTests/SecretAnimationTests-Info.plist"; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | TEST_HOST = "$(BUNDLE_LOADER)"; 437 | WRAPPER_EXTENSION = xctest; 438 | }; 439 | name = Release; 440 | }; 441 | /* End XCBuildConfiguration section */ 442 | 443 | /* Begin XCConfigurationList section */ 444 | 9CDC5FDB18FB246F00720517 /* Build configuration list for PBXProject "SecretAnimation" */ = { 445 | isa = XCConfigurationList; 446 | buildConfigurations = ( 447 | 9CDC601018FB247000720517 /* Debug */, 448 | 9CDC601118FB247000720517 /* Release */, 449 | ); 450 | defaultConfigurationIsVisible = 0; 451 | defaultConfigurationName = Release; 452 | }; 453 | 9CDC601218FB247000720517 /* Build configuration list for PBXNativeTarget "SecretAnimation" */ = { 454 | isa = XCConfigurationList; 455 | buildConfigurations = ( 456 | 9CDC601318FB247000720517 /* Debug */, 457 | 9CDC601418FB247000720517 /* Release */, 458 | ); 459 | defaultConfigurationIsVisible = 0; 460 | }; 461 | 9CDC601518FB247000720517 /* Build configuration list for PBXNativeTarget "SecretAnimationTests" */ = { 462 | isa = XCConfigurationList; 463 | buildConfigurations = ( 464 | 9CDC601618FB247000720517 /* Debug */, 465 | 9CDC601718FB247000720517 /* Release */, 466 | ); 467 | defaultConfigurationIsVisible = 0; 468 | }; 469 | /* End XCConfigurationList section */ 470 | }; 471 | rootObject = 9CDC5FD818FB246F00720517 /* Project object */; 472 | } 473 | -------------------------------------------------------------------------------- /SecretAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SecretAnimation.xcodeproj/project.xcworkspace/xcuserdata/marina.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NatashaTheRobot/SecretTextAnimationExample/d8b5a1128c4e8cb0fdde0868cf681b7b4859b07d/SecretAnimation.xcodeproj/project.xcworkspace/xcuserdata/marina.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /SecretAnimation.xcodeproj/project.xcworkspace/xcuserdata/marina.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges 6 | 7 | SnapshotAutomaticallyBeforeSignificantChanges 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /SecretAnimation.xcodeproj/xcuserdata/marina.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /SecretAnimation.xcodeproj/xcuserdata/marina.xcuserdatad/xcschemes/SecretAnimation.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /SecretAnimation.xcodeproj/xcuserdata/marina.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | SecretAnimation.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 9CDC5FDF18FB246F00720517 16 | 17 | primary 18 | 19 | 20 | 9CDC600018FB247000720517 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /SecretAnimation/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 24 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /SecretAnimation/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SecretAnimation/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /SecretAnimation/NTRAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // NTRAppDelegate.h 3 | // SecretAnimation 4 | // 5 | // Created by Natasha Murashev on 4/13/14. 6 | // Copyright (c) 2014 NatashaTheRobot. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NTRAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /SecretAnimation/NTRAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // NTRAppDelegate.m 3 | // SecretAnimation 4 | // 5 | // Created by Natasha Murashev on 4/13/14. 6 | // Copyright (c) 2014 NatashaTheRobot. All rights reserved. 7 | // 8 | 9 | #import "NTRAppDelegate.h" 10 | 11 | @implementation NTRAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /SecretAnimation/NTRViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // NTRViewController.h 3 | // SecretAnimation 4 | // 5 | // Created by Natasha Murashev on 4/13/14. 6 | // Copyright (c) 2014 NatashaTheRobot. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NTRViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /SecretAnimation/NTRViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // NTRViewController.m 3 | // SecretAnimation 4 | // 5 | // Created by Natasha Murashev on 4/13/14. 6 | // Copyright (c) 2014 NatashaTheRobot. All rights reserved. 7 | // 8 | 9 | #import "NTRViewController.h" 10 | 11 | @interface NTRViewController () 12 | 13 | @property (weak, nonatomic) IBOutlet UILabel *textLabel1; 14 | @property (weak, nonatomic) IBOutlet UILabel *textLabel2; 15 | 16 | @property (strong, nonatomic) NSAttributedString *attributedString; 17 | @property (assign, nonatomic) NSUInteger numWhiteCharacters; 18 | 19 | @property (strong, nonatomic) UILabel *topLabel; 20 | @property (strong, nonatomic) UILabel *bottomLabel; 21 | 22 | @end 23 | 24 | @implementation NTRViewController 25 | 26 | - (void)viewDidLoad 27 | { 28 | [super viewDidLoad]; 29 | 30 | self.textLabel1.alpha = 0; 31 | self.textLabel2.alpha = 0; 32 | 33 | // this is based on the view hierarchy in the storyboard 34 | self.topLabel = self.textLabel2; 35 | self.bottomLabel = self.textLabel1; 36 | 37 | NSString *mySecretMessage = @"This is a my replication of Secret's text animation. It looks like one fancy label, but it's actually two UITextLabels on top of each other! What do you think?"; 38 | 39 | self.numWhiteCharacters = 0; 40 | 41 | __block NSAttributedString *initialAttributedText = [self randomlyFadedAttributedStringFromString:mySecretMessage]; 42 | self.topLabel.attributedText = initialAttributedText; 43 | 44 | __weak NTRViewController *weakSelf = self; 45 | [UIView animateWithDuration:0.1 animations:^{ 46 | weakSelf.topLabel.alpha = 1; 47 | } completion:^(BOOL finished) { 48 | weakSelf.attributedString = [weakSelf randomlyFadedAttributedStringFromAttributedString:initialAttributedText]; 49 | weakSelf.bottomLabel.attributedText = weakSelf.attributedString; 50 | [weakSelf performAnimation]; 51 | }]; 52 | } 53 | 54 | - (void)performAnimation 55 | { 56 | __weak NTRViewController *weakSelf = self; 57 | [UILabel animateWithDuration:0.1 58 | delay:0 59 | options:UIViewAnimationOptionCurveEaseIn 60 | animations:^{ 61 | weakSelf.bottomLabel.alpha = 1; 62 | } completion:^(BOOL finished) { 63 | [weakSelf resetLabels]; 64 | 65 | // keep performing the animation until all letters are white 66 | if (weakSelf.numWhiteCharacters == [weakSelf.attributedString length]) { 67 | [weakSelf.bottomLabel removeFromSuperview]; 68 | } else { 69 | [weakSelf performAnimation]; 70 | } 71 | }]; 72 | } 73 | 74 | - (void)resetLabels 75 | { 76 | [self.topLabel removeFromSuperview]; 77 | self.topLabel.alpha = 0; 78 | 79 | // recalculate attributed string with the new white color values 80 | self.attributedString = [self randomlyFadedAttributedStringFromAttributedString:self.attributedString]; 81 | self.topLabel.attributedText = self.attributedString; 82 | 83 | [self.view insertSubview:self.topLabel belowSubview:self.bottomLabel]; 84 | 85 | // the top label is now on the bottom, so switch 86 | UILabel *oldBottom = self.bottomLabel; 87 | UILabel *oldTopLabel = self.topLabel; 88 | 89 | self.bottomLabel = oldTopLabel; 90 | self.topLabel = oldBottom; 91 | } 92 | 93 | - (NSAttributedString *)randomlyFadedAttributedStringFromString:(NSString *)string 94 | { 95 | NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:string]; 96 | 97 | for (NSUInteger i = 0; i < [string length]; i ++) { 98 | UIColor *color = [self whiteColorWithClearColorProbability:10]; 99 | [attributedString addAttribute:NSForegroundColorAttributeName value:(id)color range:NSMakeRange(i, 1)]; 100 | [self updateNumWhiteCharactersForColor:color]; 101 | } 102 | 103 | return [attributedString copy]; 104 | } 105 | 106 | - (NSAttributedString *)randomlyFadedAttributedStringFromAttributedString:(NSAttributedString *)attributedString 107 | { 108 | NSMutableAttributedString *mutableAttributedString = [attributedString mutableCopy]; 109 | 110 | __weak NTRViewController *weakSelf = self; 111 | for (NSUInteger i = 0; i < attributedString.length; i ++) { 112 | [attributedString enumerateAttribute:NSForegroundColorAttributeName 113 | inRange:NSMakeRange(i, 1) 114 | options:NSAttributedStringEnumerationLongestEffectiveRangeNotRequired 115 | usingBlock:^(id value, NSRange range, BOOL *stop) { 116 | UIColor *initialColor = value; 117 | UIColor *newColor = [weakSelf whiteColorFromInitialColor:initialColor]; 118 | if (newColor) { 119 | [mutableAttributedString addAttribute:NSForegroundColorAttributeName value:newColor range:range]; 120 | [weakSelf updateNumWhiteCharactersForColor:newColor]; 121 | } 122 | }]; 123 | 124 | } 125 | 126 | return [mutableAttributedString copy]; 127 | } 128 | 129 | - (void)updateNumWhiteCharactersForColor:(UIColor *)color 130 | { 131 | CGFloat alpha = CGColorGetAlpha(color.CGColor); 132 | if (alpha == 1.0) { 133 | self.numWhiteCharacters++; 134 | } 135 | } 136 | 137 | - (UIColor *)whiteColorFromInitialColor:(UIColor *)initialColor 138 | { 139 | UIColor *newColor; 140 | if ([initialColor isEqual:[UIColor clearColor]]) 141 | { 142 | newColor = [self whiteColorWithClearColorProbability:4]; 143 | } else { 144 | CGFloat alpha = CGColorGetAlpha(initialColor.CGColor); 145 | if (alpha != 1.0) { 146 | newColor = [self whiteColorWithMinAlpha:alpha]; 147 | } 148 | } 149 | return newColor; 150 | } 151 | 152 | - (UIColor *)whiteColorWithClearColorProbability:(NSInteger)probability 153 | { 154 | UIColor *color; 155 | NSInteger colorIndex = arc4random() % probability; 156 | if (colorIndex != 0) { 157 | color = [UIColor clearColor]; 158 | } else { 159 | color = [self whiteColorWithMinAlpha:0]; 160 | } 161 | return color; 162 | } 163 | 164 | - (UIColor *)whiteColorWithMinAlpha:(CGFloat)minAlpha 165 | { 166 | NSInteger randomNumber = minAlpha * 100 + arc4random_uniform(100 - minAlpha * 100 + 1); 167 | CGFloat randomAlpha = randomNumber / 100.0; 168 | return [UIColor colorWithWhite:1.0 alpha:randomAlpha]; 169 | } 170 | 171 | - (BOOL)prefersStatusBarHidden 172 | { 173 | return YES; 174 | } 175 | 176 | @end 177 | -------------------------------------------------------------------------------- /SecretAnimation/SecretAnimation-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.natashatherobot.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /SecretAnimation/SecretAnimation-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /SecretAnimation/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /SecretAnimation/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SecretAnimation 4 | // 5 | // Created by Natasha Murashev on 4/13/14. 6 | // Copyright (c) 2014 NatashaTheRobot. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "NTRAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([NTRAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /SecretAnimationTests/SecretAnimationTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.natashatherobot.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /SecretAnimationTests/SecretAnimationTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // SecretAnimationTests.m 3 | // SecretAnimationTests 4 | // 5 | // Created by Natasha Murashev on 4/13/14. 6 | // Copyright (c) 2014 NatashaTheRobot. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SecretAnimationTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation SecretAnimationTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /SecretAnimationTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | --------------------------------------------------------------------------------