├── PractiseRunLoop.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── robot.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── robot.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── PractiseRunLoop.xcscheme │ └── xcschememanagement.plist ├── PractiseRunLoop ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── PractiseRunLoopTests ├── Info.plist └── PractiseRunLoopTests.m └── PractiseRunLoopUITests ├── Info.plist └── PractiseRunLoopUITests.m /PractiseRunLoop.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | E2674BF51CCC3381001A14FE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E2674BF41CCC3381001A14FE /* main.m */; }; 11 | E2674BF81CCC3381001A14FE /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E2674BF71CCC3381001A14FE /* AppDelegate.m */; }; 12 | E2674BFB1CCC3381001A14FE /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E2674BFA1CCC3381001A14FE /* ViewController.m */; }; 13 | E2674BFE1CCC3381001A14FE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E2674BFC1CCC3381001A14FE /* Main.storyboard */; }; 14 | E2674C001CCC3381001A14FE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E2674BFF1CCC3381001A14FE /* Assets.xcassets */; }; 15 | E2674C031CCC3381001A14FE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E2674C011CCC3381001A14FE /* LaunchScreen.storyboard */; }; 16 | E2674C0E1CCC3381001A14FE /* PractiseRunLoopTests.m in Sources */ = {isa = PBXBuildFile; fileRef = E2674C0D1CCC3381001A14FE /* PractiseRunLoopTests.m */; }; 17 | E2674C191CCC3381001A14FE /* PractiseRunLoopUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = E2674C181CCC3381001A14FE /* PractiseRunLoopUITests.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | E2674C0A1CCC3381001A14FE /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = E2674BE81CCC3381001A14FE /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = E2674BEF1CCC3381001A14FE; 26 | remoteInfo = PractiseRunLoop; 27 | }; 28 | E2674C151CCC3381001A14FE /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = E2674BE81CCC3381001A14FE /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = E2674BEF1CCC3381001A14FE; 33 | remoteInfo = PractiseRunLoop; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | E2674BF01CCC3381001A14FE /* PractiseRunLoop.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PractiseRunLoop.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | E2674BF41CCC3381001A14FE /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 40 | E2674BF61CCC3381001A14FE /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 41 | E2674BF71CCC3381001A14FE /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 42 | E2674BF91CCC3381001A14FE /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 43 | E2674BFA1CCC3381001A14FE /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 44 | E2674BFD1CCC3381001A14FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | E2674BFF1CCC3381001A14FE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | E2674C021CCC3381001A14FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | E2674C041CCC3381001A14FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | E2674C091CCC3381001A14FE /* PractiseRunLoopTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PractiseRunLoopTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | E2674C0D1CCC3381001A14FE /* PractiseRunLoopTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PractiseRunLoopTests.m; sourceTree = ""; }; 50 | E2674C0F1CCC3381001A14FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | E2674C141CCC3381001A14FE /* PractiseRunLoopUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PractiseRunLoopUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | E2674C181CCC3381001A14FE /* PractiseRunLoopUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PractiseRunLoopUITests.m; sourceTree = ""; }; 53 | E2674C1A1CCC3381001A14FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | E2674BED1CCC3381001A14FE /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | E2674C061CCC3381001A14FE /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | E2674C111CCC3381001A14FE /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | E2674BE71CCC3381001A14FE = { 82 | isa = PBXGroup; 83 | children = ( 84 | E2674BF21CCC3381001A14FE /* PractiseRunLoop */, 85 | E2674C0C1CCC3381001A14FE /* PractiseRunLoopTests */, 86 | E2674C171CCC3381001A14FE /* PractiseRunLoopUITests */, 87 | E2674BF11CCC3381001A14FE /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | E2674BF11CCC3381001A14FE /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | E2674BF01CCC3381001A14FE /* PractiseRunLoop.app */, 95 | E2674C091CCC3381001A14FE /* PractiseRunLoopTests.xctest */, 96 | E2674C141CCC3381001A14FE /* PractiseRunLoopUITests.xctest */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | E2674BF21CCC3381001A14FE /* PractiseRunLoop */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | E2674BF61CCC3381001A14FE /* AppDelegate.h */, 105 | E2674BF71CCC3381001A14FE /* AppDelegate.m */, 106 | E2674BF91CCC3381001A14FE /* ViewController.h */, 107 | E2674BFA1CCC3381001A14FE /* ViewController.m */, 108 | E2674BFC1CCC3381001A14FE /* Main.storyboard */, 109 | E2674BFF1CCC3381001A14FE /* Assets.xcassets */, 110 | E2674C011CCC3381001A14FE /* LaunchScreen.storyboard */, 111 | E2674C041CCC3381001A14FE /* Info.plist */, 112 | E2674BF31CCC3381001A14FE /* Supporting Files */, 113 | ); 114 | path = PractiseRunLoop; 115 | sourceTree = ""; 116 | }; 117 | E2674BF31CCC3381001A14FE /* Supporting Files */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | E2674BF41CCC3381001A14FE /* main.m */, 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | E2674C0C1CCC3381001A14FE /* PractiseRunLoopTests */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | E2674C0D1CCC3381001A14FE /* PractiseRunLoopTests.m */, 129 | E2674C0F1CCC3381001A14FE /* Info.plist */, 130 | ); 131 | path = PractiseRunLoopTests; 132 | sourceTree = ""; 133 | }; 134 | E2674C171CCC3381001A14FE /* PractiseRunLoopUITests */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | E2674C181CCC3381001A14FE /* PractiseRunLoopUITests.m */, 138 | E2674C1A1CCC3381001A14FE /* Info.plist */, 139 | ); 140 | path = PractiseRunLoopUITests; 141 | sourceTree = ""; 142 | }; 143 | /* End PBXGroup section */ 144 | 145 | /* Begin PBXNativeTarget section */ 146 | E2674BEF1CCC3381001A14FE /* PractiseRunLoop */ = { 147 | isa = PBXNativeTarget; 148 | buildConfigurationList = E2674C1D1CCC3381001A14FE /* Build configuration list for PBXNativeTarget "PractiseRunLoop" */; 149 | buildPhases = ( 150 | E2674BEC1CCC3381001A14FE /* Sources */, 151 | E2674BED1CCC3381001A14FE /* Frameworks */, 152 | E2674BEE1CCC3381001A14FE /* Resources */, 153 | ); 154 | buildRules = ( 155 | ); 156 | dependencies = ( 157 | ); 158 | name = PractiseRunLoop; 159 | productName = PractiseRunLoop; 160 | productReference = E2674BF01CCC3381001A14FE /* PractiseRunLoop.app */; 161 | productType = "com.apple.product-type.application"; 162 | }; 163 | E2674C081CCC3381001A14FE /* PractiseRunLoopTests */ = { 164 | isa = PBXNativeTarget; 165 | buildConfigurationList = E2674C201CCC3381001A14FE /* Build configuration list for PBXNativeTarget "PractiseRunLoopTests" */; 166 | buildPhases = ( 167 | E2674C051CCC3381001A14FE /* Sources */, 168 | E2674C061CCC3381001A14FE /* Frameworks */, 169 | E2674C071CCC3381001A14FE /* Resources */, 170 | ); 171 | buildRules = ( 172 | ); 173 | dependencies = ( 174 | E2674C0B1CCC3381001A14FE /* PBXTargetDependency */, 175 | ); 176 | name = PractiseRunLoopTests; 177 | productName = PractiseRunLoopTests; 178 | productReference = E2674C091CCC3381001A14FE /* PractiseRunLoopTests.xctest */; 179 | productType = "com.apple.product-type.bundle.unit-test"; 180 | }; 181 | E2674C131CCC3381001A14FE /* PractiseRunLoopUITests */ = { 182 | isa = PBXNativeTarget; 183 | buildConfigurationList = E2674C231CCC3381001A14FE /* Build configuration list for PBXNativeTarget "PractiseRunLoopUITests" */; 184 | buildPhases = ( 185 | E2674C101CCC3381001A14FE /* Sources */, 186 | E2674C111CCC3381001A14FE /* Frameworks */, 187 | E2674C121CCC3381001A14FE /* Resources */, 188 | ); 189 | buildRules = ( 190 | ); 191 | dependencies = ( 192 | E2674C161CCC3381001A14FE /* PBXTargetDependency */, 193 | ); 194 | name = PractiseRunLoopUITests; 195 | productName = PractiseRunLoopUITests; 196 | productReference = E2674C141CCC3381001A14FE /* PractiseRunLoopUITests.xctest */; 197 | productType = "com.apple.product-type.bundle.ui-testing"; 198 | }; 199 | /* End PBXNativeTarget section */ 200 | 201 | /* Begin PBXProject section */ 202 | E2674BE81CCC3381001A14FE /* Project object */ = { 203 | isa = PBXProject; 204 | attributes = { 205 | LastUpgradeCheck = 0710; 206 | ORGANIZATIONNAME = codeFighter.com; 207 | TargetAttributes = { 208 | E2674BEF1CCC3381001A14FE = { 209 | CreatedOnToolsVersion = 7.1.1; 210 | }; 211 | E2674C081CCC3381001A14FE = { 212 | CreatedOnToolsVersion = 7.1.1; 213 | TestTargetID = E2674BEF1CCC3381001A14FE; 214 | }; 215 | E2674C131CCC3381001A14FE = { 216 | CreatedOnToolsVersion = 7.1.1; 217 | TestTargetID = E2674BEF1CCC3381001A14FE; 218 | }; 219 | }; 220 | }; 221 | buildConfigurationList = E2674BEB1CCC3381001A14FE /* Build configuration list for PBXProject "PractiseRunLoop" */; 222 | compatibilityVersion = "Xcode 3.2"; 223 | developmentRegion = English; 224 | hasScannedForEncodings = 0; 225 | knownRegions = ( 226 | en, 227 | Base, 228 | ); 229 | mainGroup = E2674BE71CCC3381001A14FE; 230 | productRefGroup = E2674BF11CCC3381001A14FE /* Products */; 231 | projectDirPath = ""; 232 | projectRoot = ""; 233 | targets = ( 234 | E2674BEF1CCC3381001A14FE /* PractiseRunLoop */, 235 | E2674C081CCC3381001A14FE /* PractiseRunLoopTests */, 236 | E2674C131CCC3381001A14FE /* PractiseRunLoopUITests */, 237 | ); 238 | }; 239 | /* End PBXProject section */ 240 | 241 | /* Begin PBXResourcesBuildPhase section */ 242 | E2674BEE1CCC3381001A14FE /* Resources */ = { 243 | isa = PBXResourcesBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | E2674C031CCC3381001A14FE /* LaunchScreen.storyboard in Resources */, 247 | E2674C001CCC3381001A14FE /* Assets.xcassets in Resources */, 248 | E2674BFE1CCC3381001A14FE /* Main.storyboard in Resources */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | E2674C071CCC3381001A14FE /* Resources */ = { 253 | isa = PBXResourcesBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | ); 257 | runOnlyForDeploymentPostprocessing = 0; 258 | }; 259 | E2674C121CCC3381001A14FE /* Resources */ = { 260 | isa = PBXResourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | /* End PBXResourcesBuildPhase section */ 267 | 268 | /* Begin PBXSourcesBuildPhase section */ 269 | E2674BEC1CCC3381001A14FE /* Sources */ = { 270 | isa = PBXSourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | E2674BFB1CCC3381001A14FE /* ViewController.m in Sources */, 274 | E2674BF81CCC3381001A14FE /* AppDelegate.m in Sources */, 275 | E2674BF51CCC3381001A14FE /* main.m in Sources */, 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | E2674C051CCC3381001A14FE /* Sources */ = { 280 | isa = PBXSourcesBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | E2674C0E1CCC3381001A14FE /* PractiseRunLoopTests.m in Sources */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | E2674C101CCC3381001A14FE /* Sources */ = { 288 | isa = PBXSourcesBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | E2674C191CCC3381001A14FE /* PractiseRunLoopUITests.m in Sources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | /* End PBXSourcesBuildPhase section */ 296 | 297 | /* Begin PBXTargetDependency section */ 298 | E2674C0B1CCC3381001A14FE /* PBXTargetDependency */ = { 299 | isa = PBXTargetDependency; 300 | target = E2674BEF1CCC3381001A14FE /* PractiseRunLoop */; 301 | targetProxy = E2674C0A1CCC3381001A14FE /* PBXContainerItemProxy */; 302 | }; 303 | E2674C161CCC3381001A14FE /* PBXTargetDependency */ = { 304 | isa = PBXTargetDependency; 305 | target = E2674BEF1CCC3381001A14FE /* PractiseRunLoop */; 306 | targetProxy = E2674C151CCC3381001A14FE /* PBXContainerItemProxy */; 307 | }; 308 | /* End PBXTargetDependency section */ 309 | 310 | /* Begin PBXVariantGroup section */ 311 | E2674BFC1CCC3381001A14FE /* Main.storyboard */ = { 312 | isa = PBXVariantGroup; 313 | children = ( 314 | E2674BFD1CCC3381001A14FE /* Base */, 315 | ); 316 | name = Main.storyboard; 317 | sourceTree = ""; 318 | }; 319 | E2674C011CCC3381001A14FE /* LaunchScreen.storyboard */ = { 320 | isa = PBXVariantGroup; 321 | children = ( 322 | E2674C021CCC3381001A14FE /* Base */, 323 | ); 324 | name = LaunchScreen.storyboard; 325 | sourceTree = ""; 326 | }; 327 | /* End PBXVariantGroup section */ 328 | 329 | /* Begin XCBuildConfiguration section */ 330 | E2674C1B1CCC3381001A14FE /* Debug */ = { 331 | isa = XCBuildConfiguration; 332 | buildSettings = { 333 | ALWAYS_SEARCH_USER_PATHS = NO; 334 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 335 | CLANG_CXX_LIBRARY = "libc++"; 336 | CLANG_ENABLE_MODULES = YES; 337 | CLANG_ENABLE_OBJC_ARC = YES; 338 | CLANG_WARN_BOOL_CONVERSION = YES; 339 | CLANG_WARN_CONSTANT_CONVERSION = YES; 340 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 341 | CLANG_WARN_EMPTY_BODY = YES; 342 | CLANG_WARN_ENUM_CONVERSION = YES; 343 | CLANG_WARN_INT_CONVERSION = YES; 344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 345 | CLANG_WARN_UNREACHABLE_CODE = YES; 346 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 347 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 348 | COPY_PHASE_STRIP = NO; 349 | DEBUG_INFORMATION_FORMAT = dwarf; 350 | ENABLE_STRICT_OBJC_MSGSEND = YES; 351 | ENABLE_TESTABILITY = YES; 352 | GCC_C_LANGUAGE_STANDARD = gnu99; 353 | GCC_DYNAMIC_NO_PIC = NO; 354 | GCC_NO_COMMON_BLOCKS = YES; 355 | GCC_OPTIMIZATION_LEVEL = 0; 356 | GCC_PREPROCESSOR_DEFINITIONS = ( 357 | "DEBUG=1", 358 | "$(inherited)", 359 | ); 360 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 361 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 362 | GCC_WARN_UNDECLARED_SELECTOR = YES; 363 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 364 | GCC_WARN_UNUSED_FUNCTION = YES; 365 | GCC_WARN_UNUSED_VARIABLE = YES; 366 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 367 | MTL_ENABLE_DEBUG_INFO = YES; 368 | ONLY_ACTIVE_ARCH = YES; 369 | SDKROOT = iphoneos; 370 | }; 371 | name = Debug; 372 | }; 373 | E2674C1C1CCC3381001A14FE /* Release */ = { 374 | isa = XCBuildConfiguration; 375 | buildSettings = { 376 | ALWAYS_SEARCH_USER_PATHS = NO; 377 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 378 | CLANG_CXX_LIBRARY = "libc++"; 379 | CLANG_ENABLE_MODULES = YES; 380 | CLANG_ENABLE_OBJC_ARC = YES; 381 | CLANG_WARN_BOOL_CONVERSION = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 384 | CLANG_WARN_EMPTY_BODY = YES; 385 | CLANG_WARN_ENUM_CONVERSION = YES; 386 | CLANG_WARN_INT_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_UNREACHABLE_CODE = YES; 389 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 390 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 391 | COPY_PHASE_STRIP = NO; 392 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 393 | ENABLE_NS_ASSERTIONS = NO; 394 | ENABLE_STRICT_OBJC_MSGSEND = YES; 395 | GCC_C_LANGUAGE_STANDARD = gnu99; 396 | GCC_NO_COMMON_BLOCKS = YES; 397 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 398 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 399 | GCC_WARN_UNDECLARED_SELECTOR = YES; 400 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 401 | GCC_WARN_UNUSED_FUNCTION = YES; 402 | GCC_WARN_UNUSED_VARIABLE = YES; 403 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 404 | MTL_ENABLE_DEBUG_INFO = NO; 405 | SDKROOT = iphoneos; 406 | VALIDATE_PRODUCT = YES; 407 | }; 408 | name = Release; 409 | }; 410 | E2674C1E1CCC3381001A14FE /* Debug */ = { 411 | isa = XCBuildConfiguration; 412 | buildSettings = { 413 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 414 | INFOPLIST_FILE = PractiseRunLoop/Info.plist; 415 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 416 | PRODUCT_BUNDLE_IDENTIFIER = codeFighter.com.PractiseRunLoop; 417 | PRODUCT_NAME = "$(TARGET_NAME)"; 418 | }; 419 | name = Debug; 420 | }; 421 | E2674C1F1CCC3381001A14FE /* Release */ = { 422 | isa = XCBuildConfiguration; 423 | buildSettings = { 424 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 425 | INFOPLIST_FILE = PractiseRunLoop/Info.plist; 426 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 427 | PRODUCT_BUNDLE_IDENTIFIER = codeFighter.com.PractiseRunLoop; 428 | PRODUCT_NAME = "$(TARGET_NAME)"; 429 | }; 430 | name = Release; 431 | }; 432 | E2674C211CCC3381001A14FE /* Debug */ = { 433 | isa = XCBuildConfiguration; 434 | buildSettings = { 435 | BUNDLE_LOADER = "$(TEST_HOST)"; 436 | INFOPLIST_FILE = PractiseRunLoopTests/Info.plist; 437 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 438 | PRODUCT_BUNDLE_IDENTIFIER = codeFighter.com.PractiseRunLoopTests; 439 | PRODUCT_NAME = "$(TARGET_NAME)"; 440 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PractiseRunLoop.app/PractiseRunLoop"; 441 | }; 442 | name = Debug; 443 | }; 444 | E2674C221CCC3381001A14FE /* Release */ = { 445 | isa = XCBuildConfiguration; 446 | buildSettings = { 447 | BUNDLE_LOADER = "$(TEST_HOST)"; 448 | INFOPLIST_FILE = PractiseRunLoopTests/Info.plist; 449 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 450 | PRODUCT_BUNDLE_IDENTIFIER = codeFighter.com.PractiseRunLoopTests; 451 | PRODUCT_NAME = "$(TARGET_NAME)"; 452 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PractiseRunLoop.app/PractiseRunLoop"; 453 | }; 454 | name = Release; 455 | }; 456 | E2674C241CCC3381001A14FE /* Debug */ = { 457 | isa = XCBuildConfiguration; 458 | buildSettings = { 459 | INFOPLIST_FILE = PractiseRunLoopUITests/Info.plist; 460 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 461 | PRODUCT_BUNDLE_IDENTIFIER = codeFighter.com.PractiseRunLoopUITests; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | TEST_TARGET_NAME = PractiseRunLoop; 464 | USES_XCTRUNNER = YES; 465 | }; 466 | name = Debug; 467 | }; 468 | E2674C251CCC3381001A14FE /* Release */ = { 469 | isa = XCBuildConfiguration; 470 | buildSettings = { 471 | INFOPLIST_FILE = PractiseRunLoopUITests/Info.plist; 472 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 473 | PRODUCT_BUNDLE_IDENTIFIER = codeFighter.com.PractiseRunLoopUITests; 474 | PRODUCT_NAME = "$(TARGET_NAME)"; 475 | TEST_TARGET_NAME = PractiseRunLoop; 476 | USES_XCTRUNNER = YES; 477 | }; 478 | name = Release; 479 | }; 480 | /* End XCBuildConfiguration section */ 481 | 482 | /* Begin XCConfigurationList section */ 483 | E2674BEB1CCC3381001A14FE /* Build configuration list for PBXProject "PractiseRunLoop" */ = { 484 | isa = XCConfigurationList; 485 | buildConfigurations = ( 486 | E2674C1B1CCC3381001A14FE /* Debug */, 487 | E2674C1C1CCC3381001A14FE /* Release */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | E2674C1D1CCC3381001A14FE /* Build configuration list for PBXNativeTarget "PractiseRunLoop" */ = { 493 | isa = XCConfigurationList; 494 | buildConfigurations = ( 495 | E2674C1E1CCC3381001A14FE /* Debug */, 496 | E2674C1F1CCC3381001A14FE /* Release */, 497 | ); 498 | defaultConfigurationIsVisible = 0; 499 | }; 500 | E2674C201CCC3381001A14FE /* Build configuration list for PBXNativeTarget "PractiseRunLoopTests" */ = { 501 | isa = XCConfigurationList; 502 | buildConfigurations = ( 503 | E2674C211CCC3381001A14FE /* Debug */, 504 | E2674C221CCC3381001A14FE /* Release */, 505 | ); 506 | defaultConfigurationIsVisible = 0; 507 | }; 508 | E2674C231CCC3381001A14FE /* Build configuration list for PBXNativeTarget "PractiseRunLoopUITests" */ = { 509 | isa = XCConfigurationList; 510 | buildConfigurations = ( 511 | E2674C241CCC3381001A14FE /* Debug */, 512 | E2674C251CCC3381001A14FE /* Release */, 513 | ); 514 | defaultConfigurationIsVisible = 0; 515 | }; 516 | /* End XCConfigurationList section */ 517 | }; 518 | rootObject = E2674BE81CCC3381001A14FE /* Project object */; 519 | } 520 | -------------------------------------------------------------------------------- /PractiseRunLoop.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PractiseRunLoop.xcodeproj/project.xcworkspace/xcuserdata/robot.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MikeFighting/PractiseRunLoop/e51957fc0be400a0c39ba7c22fa469242c72eeb3/PractiseRunLoop.xcodeproj/project.xcworkspace/xcuserdata/robot.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /PractiseRunLoop.xcodeproj/xcuserdata/robot.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /PractiseRunLoop.xcodeproj/xcuserdata/robot.xcuserdatad/xcschemes/PractiseRunLoop.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /PractiseRunLoop.xcodeproj/xcuserdata/robot.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | PractiseRunLoop.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | E2674BEF1CCC3381001A14FE 16 | 17 | primary 18 | 19 | 20 | E2674C081CCC3381001A14FE 21 | 22 | primary 23 | 24 | 25 | E2674C131CCC3381001A14FE 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /PractiseRunLoop/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // PractiseRunLoop 4 | // 5 | // Created by robot on 4/24/16. 6 | // Copyright © 2016 codeFighter.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /PractiseRunLoop/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // PractiseRunLoop 4 | // 5 | // Created by robot on 4/24/16. 6 | // Copyright © 2016 codeFighter.com. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // 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. 25 | // 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. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // 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. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 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 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /PractiseRunLoop/Assets.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" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /PractiseRunLoop/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /PractiseRunLoop/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /PractiseRunLoop/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /PractiseRunLoop/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // PractiseRunLoop 4 | // 5 | // Created by robot on 4/24/16. 6 | // Copyright © 2016 codeFighter.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /PractiseRunLoop/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // PractiseRunLoop 4 | // 5 | // Created by robot on 4/24/16. 6 | // Copyright © 2016 codeFighter.com. All rights reserved. 7 | // QQ:1500190761 欢迎交流学习 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @property(nonatomic,strong) NSThread *myThread; 14 | @property(nonatomic,assign) BOOL runLoopThreadDidFinishFlag; 15 | @property(nonatomic,strong) dispatch_source_t timer; 16 | @end 17 | 18 | @implementation ViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | // Do any additional setup after loading the view, typically from a nib. 23 | 24 | // [self simplePractiseBackGround]; 25 | // [self simplePractiseMain]; 26 | 27 | // [self tryPerformSelectorOnMianThread]; 28 | // [self tryPerformSelectorOnBackGroundThread]; 29 | 30 | // [self alwaysLiveBackGoundThread]; 31 | // [self tryTimerOnMainThread]; 32 | // [self tryTimerOnBackGrondThread]; 33 | 34 | [self runLoopAddDependance]; 35 | [self gcdTimer]; 36 | 37 | } 38 | 39 | - (void)simplePractiseMain{ 40 | 41 | while (1) { 42 | 43 | NSLog(@"while begin"); 44 | // the thread be blocked here 45 | NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; 46 | NSLog(@"%@",runLoop); 47 | [runLoop runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; 48 | // this will not be executed 49 | 50 | NSLog(@"while end"); 51 | 52 | } 53 | 54 | } 55 | - (void)simplePractiseBackGround{ 56 | 57 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 58 | 59 | while (1) { 60 | 61 | NSPort *macPort = [NSPort port]; 62 | NSLog(@"while begin"); 63 | NSRunLoop *subRunLoop = [NSRunLoop currentRunLoop]; 64 | [subRunLoop addPort:macPort forMode:NSDefaultRunLoopMode]; 65 | [subRunLoop runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; 66 | NSLog(@"while end"); 67 | NSLog(@"%@",subRunLoop); 68 | 69 | } 70 | 71 | 72 | }); 73 | 74 | } 75 | 76 | - (void)tryPerformSelectorOnMianThread{ 77 | 78 | [self performSelector:@selector(mainThreadMethod) withObject:nil]; 79 | 80 | 81 | } 82 | - (void)mainThreadMethod{ 83 | 84 | NSLog(@"execute %s",__func__); 85 | // print: execute -[ViewController mainThreadMethod] 86 | 87 | 88 | } 89 | 90 | - (void)tryPerformSelectorOnBackGroundThread{ 91 | 92 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 93 | 94 | [self performSelector:@selector(backGroundThread) onThread:[NSThread currentThread] withObject:nil waitUntilDone:NO]; 95 | NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; 96 | [runLoop run]; 97 | 98 | }); 99 | } 100 | - (void)backGroundThread{ 101 | 102 | NSLog(@"%u",[NSThread isMainThread]); 103 | NSLog(@"execute %s",__FUNCTION__); 104 | 105 | } 106 | - (void)alwaysLiveBackGoundThread{ 107 | 108 | NSThread *thread = [[NSThread alloc]initWithTarget:self selector:@selector(myThreadRun) object:@"etund"]; 109 | self.myThread = thread; 110 | [self.myThread start]; 111 | 112 | } 113 | - (void)myThreadRun{ 114 | 115 | NSLog(@"my thread run"); 116 | 117 | } 118 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 119 | 120 | NSLog(@"%@",self.myThread); 121 | [self performSelector:@selector(doBackGroundThreadWork) onThread:self.myThread withObject:nil waitUntilDone:NO]; 122 | } 123 | - (void)doBackGroundThreadWork{ 124 | 125 | NSLog(@"do some work %s",__FUNCTION__); 126 | 127 | } 128 | - (void)tryTimerOnMainThread{ 129 | 130 | NSTimer *myTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(timerAction) userInfo:nil repeats:YES]; 131 | [myTimer fire]; 132 | 133 | } 134 | - (void)tryTimerOnBackGrondThread{ 135 | 136 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 137 | 138 | NSTimer *myTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(timerAction) userInfo:nil repeats:YES]; 139 | [myTimer fire]; 140 | NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; 141 | [runLoop run]; 142 | 143 | 144 | }); 145 | 146 | 147 | } 148 | - (void)timerAction{ 149 | 150 | NSLog(@"timer action"); 151 | } 152 | - (void)runLoopAddDependance{ 153 | 154 | self.runLoopThreadDidFinishFlag = NO; 155 | NSLog(@"Start a New Run Loop Thread"); 156 | NSThread *runLoopThread = [[NSThread alloc] initWithTarget:self selector:@selector(handleRunLoopThreadTask) object:nil]; 157 | [runLoopThread start]; 158 | 159 | NSLog(@"Exit handleRunLoopThreadButtonTouchUpInside"); 160 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ 161 | 162 | 163 | while (!_runLoopThreadDidFinishFlag) { 164 | 165 | self.myThread = [NSThread currentThread]; 166 | NSLog(@"Begin RunLoop"); 167 | NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; 168 | NSPort *myPort = [NSPort port]; 169 | [runLoop addPort:myPort forMode:NSDefaultRunLoopMode]; 170 | [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; 171 | NSLog(@"End RunLoop"); 172 | [self.myThread cancel]; 173 | self.myThread = nil; 174 | 175 | } 176 | }); 177 | 178 | } 179 | - (void)handleRunLoopThreadTask 180 | { 181 | NSLog(@"Enter Run Loop Thread"); 182 | for (NSInteger i = 0; i < 5; i ++) { 183 | NSLog(@"In Run Loop Thread, count = %ld", i); 184 | sleep(1); 185 | } 186 | #if 0 187 | // 错误示范 188 | _runLoopThreadDidFinishFlag = YES; 189 | // 这个时候并不能执行线程完成之后的任务,因为Run Loop所在的线程并不知道runLoopThreadDidFinishFlag被重新赋值。Run Loop这个时候没有被任务事件源唤醒。 190 | // 正确的做法是使用 "selector"方法唤醒Run Loop。 即如下: 191 | #endif 192 | NSLog(@"Exit Normal Thread"); 193 | [self performSelector:@selector(tryOnMyThread) onThread:self.myThread withObject:nil waitUntilDone:NO]; 194 | 195 | // NSLog(@"Exit Run Loop Thread"); 196 | } 197 | - (void)tryOnMyThread{ 198 | 199 | _runLoopThreadDidFinishFlag = YES; 200 | 201 | } 202 | - (void)gcdTimer{ 203 | 204 | // get the queue 205 | dispatch_queue_t queue = dispatch_get_global_queue(0, 0); 206 | 207 | // creat timer 208 | self.timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, queue); 209 | // config the timer (starting time,interval) 210 | // set begining time 211 | dispatch_time_t start = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)); 212 | // set the interval 213 | uint64_t interver = (uint64_t)(1.0 * NSEC_PER_SEC); 214 | 215 | dispatch_source_set_timer(self.timer, start, interver, 0.0); 216 | 217 | dispatch_source_set_event_handler(self.timer, ^{ 218 | 219 | // the tarsk needed to be processed async 220 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ 221 | 222 | for (int i = 0; i < 100000; i++) { 223 | 224 | NSLog(@"gcdTimer"); 225 | 226 | 227 | } 228 | 229 | }); 230 | 231 | 232 | }); 233 | 234 | dispatch_resume(self.timer); 235 | 236 | } 237 | - (void)didReceiveMemoryWarning { 238 | [super didReceiveMemoryWarning]; 239 | // Dispose of any resources that can be recreated. 240 | } 241 | 242 | @end 243 | -------------------------------------------------------------------------------- /PractiseRunLoop/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // PractiseRunLoop 4 | // 5 | // Created by robot on 4/24/16. 6 | // Copyright © 2016 codeFighter.com. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /PractiseRunLoopTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /PractiseRunLoopTests/PractiseRunLoopTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // PractiseRunLoopTests.m 3 | // PractiseRunLoopTests 4 | // 5 | // Created by robot on 4/24/16. 6 | // Copyright © 2016 codeFighter.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface PractiseRunLoopTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation PractiseRunLoopTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /PractiseRunLoopUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /PractiseRunLoopUITests/PractiseRunLoopUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // PractiseRunLoopUITests.m 3 | // PractiseRunLoopUITests 4 | // 5 | // Created by robot on 4/24/16. 6 | // Copyright © 2016 codeFighter.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface PractiseRunLoopUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation PractiseRunLoopUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | --------------------------------------------------------------------------------