├── LTLodingView.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── litao.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── LTLodingView.xcscheme │ └── xcschememanagement.plist ├── LTLodingView ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── LTLodingView │ ├── UIImage+LT_git.h │ ├── UIImage+LT_git.m │ ├── UIImageView+LT_loding.h │ ├── UIImageView+LT_loding.m │ ├── UIView+LT_loding.h │ └── UIView+LT_loding.m ├── ViewController.h ├── ViewController.m ├── loding.gif └── main.m ├── LTLodingViewTests ├── Info.plist └── LTLodingViewTests.m ├── LTLodingViewUITests ├── Info.plist └── LTLodingViewUITests.m ├── README.md └── Resource ├── Untitled.gif └── loding.gif /LTLodingView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | A68FAE9B1D87DA5800A394FE /* loding.gif in Resources */ = {isa = PBXBuildFile; fileRef = A68FAE991D87DA5800A394FE /* loding.gif */; }; 11 | A68FAE9C1D87DA5800A394FE /* Untitled.gif in Resources */ = {isa = PBXBuildFile; fileRef = A68FAE9A1D87DA5800A394FE /* Untitled.gif */; }; 12 | A6A6B8B11D86AC6D00325281 /* loding.gif in Resources */ = {isa = PBXBuildFile; fileRef = A6A6B8B01D86AC6D00325281 /* loding.gif */; }; 13 | A6C0AF0C1D798895000F615E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A6C0AF0B1D798895000F615E /* main.m */; }; 14 | A6C0AF0F1D798895000F615E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A6C0AF0E1D798895000F615E /* AppDelegate.m */; }; 15 | A6C0AF121D798895000F615E /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A6C0AF111D798895000F615E /* ViewController.m */; }; 16 | A6C0AF151D798895000F615E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A6C0AF131D798895000F615E /* Main.storyboard */; }; 17 | A6C0AF171D798895000F615E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A6C0AF161D798895000F615E /* Assets.xcassets */; }; 18 | A6C0AF1A1D798895000F615E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A6C0AF181D798895000F615E /* LaunchScreen.storyboard */; }; 19 | A6C0AF251D798895000F615E /* LTLodingViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A6C0AF241D798895000F615E /* LTLodingViewTests.m */; }; 20 | A6C0AF301D798895000F615E /* LTLodingViewUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = A6C0AF2F1D798895000F615E /* LTLodingViewUITests.m */; }; 21 | A6C0AF4E1D7988E8000F615E /* UIImage+LT_git.m in Sources */ = {isa = PBXBuildFile; fileRef = A6C0AF491D7988E8000F615E /* UIImage+LT_git.m */; }; 22 | A6C0AF4F1D7988E8000F615E /* UIImageView+LT_loding.m in Sources */ = {isa = PBXBuildFile; fileRef = A6C0AF4B1D7988E8000F615E /* UIImageView+LT_loding.m */; }; 23 | A6C0AF501D7988E8000F615E /* UIView+LT_loding.m in Sources */ = {isa = PBXBuildFile; fileRef = A6C0AF4D1D7988E8000F615E /* UIView+LT_loding.m */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | A6C0AF211D798895000F615E /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = A6C0AEFF1D798895000F615E /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = A6C0AF061D798895000F615E; 32 | remoteInfo = LTLodingView; 33 | }; 34 | A6C0AF2C1D798895000F615E /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = A6C0AEFF1D798895000F615E /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = A6C0AF061D798895000F615E; 39 | remoteInfo = LTLodingView; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | A68FAE991D87DA5800A394FE /* loding.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = loding.gif; sourceTree = ""; }; 45 | A68FAE9A1D87DA5800A394FE /* Untitled.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = Untitled.gif; sourceTree = ""; }; 46 | A6A6B8B01D86AC6D00325281 /* loding.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = loding.gif; sourceTree = ""; }; 47 | A6C0AF071D798895000F615E /* LTLodingView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LTLodingView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | A6C0AF0B1D798895000F615E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 49 | A6C0AF0D1D798895000F615E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 50 | A6C0AF0E1D798895000F615E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 51 | A6C0AF101D798895000F615E /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 52 | A6C0AF111D798895000F615E /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 53 | A6C0AF141D798895000F615E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 54 | A6C0AF161D798895000F615E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 55 | A6C0AF191D798895000F615E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 56 | A6C0AF1B1D798895000F615E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | A6C0AF201D798895000F615E /* LTLodingViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LTLodingViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | A6C0AF241D798895000F615E /* LTLodingViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LTLodingViewTests.m; sourceTree = ""; }; 59 | A6C0AF261D798895000F615E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | A6C0AF2B1D798895000F615E /* LTLodingViewUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LTLodingViewUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | A6C0AF2F1D798895000F615E /* LTLodingViewUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LTLodingViewUITests.m; sourceTree = ""; }; 62 | A6C0AF311D798895000F615E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 63 | A6C0AF481D7988E8000F615E /* UIImage+LT_git.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+LT_git.h"; sourceTree = ""; }; 64 | A6C0AF491D7988E8000F615E /* UIImage+LT_git.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+LT_git.m"; sourceTree = ""; }; 65 | A6C0AF4A1D7988E8000F615E /* UIImageView+LT_loding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImageView+LT_loding.h"; sourceTree = ""; }; 66 | A6C0AF4B1D7988E8000F615E /* UIImageView+LT_loding.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImageView+LT_loding.m"; sourceTree = ""; }; 67 | A6C0AF4C1D7988E8000F615E /* UIView+LT_loding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+LT_loding.h"; sourceTree = ""; }; 68 | A6C0AF4D1D7988E8000F615E /* UIView+LT_loding.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+LT_loding.m"; sourceTree = ""; }; 69 | /* End PBXFileReference section */ 70 | 71 | /* Begin PBXFrameworksBuildPhase section */ 72 | A6C0AF041D798895000F615E /* Frameworks */ = { 73 | isa = PBXFrameworksBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | A6C0AF1D1D798895000F615E /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | ); 84 | runOnlyForDeploymentPostprocessing = 0; 85 | }; 86 | A6C0AF281D798895000F615E /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | /* End PBXFrameworksBuildPhase section */ 94 | 95 | /* Begin PBXGroup section */ 96 | A68FAE981D87DA5800A394FE /* Resource */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | A68FAE991D87DA5800A394FE /* loding.gif */, 100 | A68FAE9A1D87DA5800A394FE /* Untitled.gif */, 101 | ); 102 | path = Resource; 103 | sourceTree = SOURCE_ROOT; 104 | }; 105 | A6C0AEFE1D798895000F615E = { 106 | isa = PBXGroup; 107 | children = ( 108 | A6C0AF091D798895000F615E /* LTLodingView */, 109 | A6C0AF231D798895000F615E /* LTLodingViewTests */, 110 | A6C0AF2E1D798895000F615E /* LTLodingViewUITests */, 111 | A6C0AF081D798895000F615E /* Products */, 112 | ); 113 | sourceTree = ""; 114 | }; 115 | A6C0AF081D798895000F615E /* Products */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | A6C0AF071D798895000F615E /* LTLodingView.app */, 119 | A6C0AF201D798895000F615E /* LTLodingViewTests.xctest */, 120 | A6C0AF2B1D798895000F615E /* LTLodingViewUITests.xctest */, 121 | ); 122 | name = Products; 123 | sourceTree = ""; 124 | }; 125 | A6C0AF091D798895000F615E /* LTLodingView */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | A6C0AF471D7988E8000F615E /* LTLodingView */, 129 | A6C0AF0D1D798895000F615E /* AppDelegate.h */, 130 | A6C0AF0E1D798895000F615E /* AppDelegate.m */, 131 | A6C0AF101D798895000F615E /* ViewController.h */, 132 | A6C0AF111D798895000F615E /* ViewController.m */, 133 | A6C0AF131D798895000F615E /* Main.storyboard */, 134 | A6A6B8B01D86AC6D00325281 /* loding.gif */, 135 | A6C0AF161D798895000F615E /* Assets.xcassets */, 136 | A6C0AF181D798895000F615E /* LaunchScreen.storyboard */, 137 | A6C0AF1B1D798895000F615E /* Info.plist */, 138 | A68FAE981D87DA5800A394FE /* Resource */, 139 | A6C0AF0A1D798895000F615E /* Supporting Files */, 140 | ); 141 | path = LTLodingView; 142 | sourceTree = ""; 143 | }; 144 | A6C0AF0A1D798895000F615E /* Supporting Files */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | A6C0AF0B1D798895000F615E /* main.m */, 148 | ); 149 | name = "Supporting Files"; 150 | sourceTree = ""; 151 | }; 152 | A6C0AF231D798895000F615E /* LTLodingViewTests */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | A6C0AF241D798895000F615E /* LTLodingViewTests.m */, 156 | A6C0AF261D798895000F615E /* Info.plist */, 157 | ); 158 | path = LTLodingViewTests; 159 | sourceTree = ""; 160 | }; 161 | A6C0AF2E1D798895000F615E /* LTLodingViewUITests */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | A6C0AF2F1D798895000F615E /* LTLodingViewUITests.m */, 165 | A6C0AF311D798895000F615E /* Info.plist */, 166 | ); 167 | path = LTLodingViewUITests; 168 | sourceTree = ""; 169 | }; 170 | A6C0AF471D7988E8000F615E /* LTLodingView */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | A6C0AF481D7988E8000F615E /* UIImage+LT_git.h */, 174 | A6C0AF491D7988E8000F615E /* UIImage+LT_git.m */, 175 | A6C0AF4A1D7988E8000F615E /* UIImageView+LT_loding.h */, 176 | A6C0AF4B1D7988E8000F615E /* UIImageView+LT_loding.m */, 177 | A6C0AF4C1D7988E8000F615E /* UIView+LT_loding.h */, 178 | A6C0AF4D1D7988E8000F615E /* UIView+LT_loding.m */, 179 | ); 180 | path = LTLodingView; 181 | sourceTree = ""; 182 | }; 183 | /* End PBXGroup section */ 184 | 185 | /* Begin PBXNativeTarget section */ 186 | A6C0AF061D798895000F615E /* LTLodingView */ = { 187 | isa = PBXNativeTarget; 188 | buildConfigurationList = A6C0AF341D798895000F615E /* Build configuration list for PBXNativeTarget "LTLodingView" */; 189 | buildPhases = ( 190 | A6C0AF031D798895000F615E /* Sources */, 191 | A6C0AF041D798895000F615E /* Frameworks */, 192 | A6C0AF051D798895000F615E /* Resources */, 193 | ); 194 | buildRules = ( 195 | ); 196 | dependencies = ( 197 | ); 198 | name = LTLodingView; 199 | productName = LTLodingView; 200 | productReference = A6C0AF071D798895000F615E /* LTLodingView.app */; 201 | productType = "com.apple.product-type.application"; 202 | }; 203 | A6C0AF1F1D798895000F615E /* LTLodingViewTests */ = { 204 | isa = PBXNativeTarget; 205 | buildConfigurationList = A6C0AF371D798895000F615E /* Build configuration list for PBXNativeTarget "LTLodingViewTests" */; 206 | buildPhases = ( 207 | A6C0AF1C1D798895000F615E /* Sources */, 208 | A6C0AF1D1D798895000F615E /* Frameworks */, 209 | A6C0AF1E1D798895000F615E /* Resources */, 210 | ); 211 | buildRules = ( 212 | ); 213 | dependencies = ( 214 | A6C0AF221D798895000F615E /* PBXTargetDependency */, 215 | ); 216 | name = LTLodingViewTests; 217 | productName = LTLodingViewTests; 218 | productReference = A6C0AF201D798895000F615E /* LTLodingViewTests.xctest */; 219 | productType = "com.apple.product-type.bundle.unit-test"; 220 | }; 221 | A6C0AF2A1D798895000F615E /* LTLodingViewUITests */ = { 222 | isa = PBXNativeTarget; 223 | buildConfigurationList = A6C0AF3A1D798895000F615E /* Build configuration list for PBXNativeTarget "LTLodingViewUITests" */; 224 | buildPhases = ( 225 | A6C0AF271D798895000F615E /* Sources */, 226 | A6C0AF281D798895000F615E /* Frameworks */, 227 | A6C0AF291D798895000F615E /* Resources */, 228 | ); 229 | buildRules = ( 230 | ); 231 | dependencies = ( 232 | A6C0AF2D1D798895000F615E /* PBXTargetDependency */, 233 | ); 234 | name = LTLodingViewUITests; 235 | productName = LTLodingViewUITests; 236 | productReference = A6C0AF2B1D798895000F615E /* LTLodingViewUITests.xctest */; 237 | productType = "com.apple.product-type.bundle.ui-testing"; 238 | }; 239 | /* End PBXNativeTarget section */ 240 | 241 | /* Begin PBXProject section */ 242 | A6C0AEFF1D798895000F615E /* Project object */ = { 243 | isa = PBXProject; 244 | attributes = { 245 | LastUpgradeCheck = 0730; 246 | ORGANIZATIONNAME = "李涛"; 247 | TargetAttributes = { 248 | A6C0AF061D798895000F615E = { 249 | CreatedOnToolsVersion = 7.3.1; 250 | }; 251 | A6C0AF1F1D798895000F615E = { 252 | CreatedOnToolsVersion = 7.3.1; 253 | TestTargetID = A6C0AF061D798895000F615E; 254 | }; 255 | A6C0AF2A1D798895000F615E = { 256 | CreatedOnToolsVersion = 7.3.1; 257 | TestTargetID = A6C0AF061D798895000F615E; 258 | }; 259 | }; 260 | }; 261 | buildConfigurationList = A6C0AF021D798895000F615E /* Build configuration list for PBXProject "LTLodingView" */; 262 | compatibilityVersion = "Xcode 3.2"; 263 | developmentRegion = English; 264 | hasScannedForEncodings = 0; 265 | knownRegions = ( 266 | en, 267 | Base, 268 | ); 269 | mainGroup = A6C0AEFE1D798895000F615E; 270 | productRefGroup = A6C0AF081D798895000F615E /* Products */; 271 | projectDirPath = ""; 272 | projectRoot = ""; 273 | targets = ( 274 | A6C0AF061D798895000F615E /* LTLodingView */, 275 | A6C0AF1F1D798895000F615E /* LTLodingViewTests */, 276 | A6C0AF2A1D798895000F615E /* LTLodingViewUITests */, 277 | ); 278 | }; 279 | /* End PBXProject section */ 280 | 281 | /* Begin PBXResourcesBuildPhase section */ 282 | A6C0AF051D798895000F615E /* Resources */ = { 283 | isa = PBXResourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | A6C0AF1A1D798895000F615E /* LaunchScreen.storyboard in Resources */, 287 | A68FAE9C1D87DA5800A394FE /* Untitled.gif in Resources */, 288 | A6C0AF171D798895000F615E /* Assets.xcassets in Resources */, 289 | A6C0AF151D798895000F615E /* Main.storyboard in Resources */, 290 | A68FAE9B1D87DA5800A394FE /* loding.gif in Resources */, 291 | A6A6B8B11D86AC6D00325281 /* loding.gif in Resources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | A6C0AF1E1D798895000F615E /* Resources */ = { 296 | isa = PBXResourcesBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | }; 302 | A6C0AF291D798895000F615E /* Resources */ = { 303 | isa = PBXResourcesBuildPhase; 304 | buildActionMask = 2147483647; 305 | files = ( 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | }; 309 | /* End PBXResourcesBuildPhase section */ 310 | 311 | /* Begin PBXSourcesBuildPhase section */ 312 | A6C0AF031D798895000F615E /* Sources */ = { 313 | isa = PBXSourcesBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | A6C0AF4F1D7988E8000F615E /* UIImageView+LT_loding.m in Sources */, 317 | A6C0AF121D798895000F615E /* ViewController.m in Sources */, 318 | A6C0AF0F1D798895000F615E /* AppDelegate.m in Sources */, 319 | A6C0AF501D7988E8000F615E /* UIView+LT_loding.m in Sources */, 320 | A6C0AF4E1D7988E8000F615E /* UIImage+LT_git.m in Sources */, 321 | A6C0AF0C1D798895000F615E /* main.m in Sources */, 322 | ); 323 | runOnlyForDeploymentPostprocessing = 0; 324 | }; 325 | A6C0AF1C1D798895000F615E /* Sources */ = { 326 | isa = PBXSourcesBuildPhase; 327 | buildActionMask = 2147483647; 328 | files = ( 329 | A6C0AF251D798895000F615E /* LTLodingViewTests.m in Sources */, 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | A6C0AF271D798895000F615E /* Sources */ = { 334 | isa = PBXSourcesBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | A6C0AF301D798895000F615E /* LTLodingViewUITests.m in Sources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | /* End PBXSourcesBuildPhase section */ 342 | 343 | /* Begin PBXTargetDependency section */ 344 | A6C0AF221D798895000F615E /* PBXTargetDependency */ = { 345 | isa = PBXTargetDependency; 346 | target = A6C0AF061D798895000F615E /* LTLodingView */; 347 | targetProxy = A6C0AF211D798895000F615E /* PBXContainerItemProxy */; 348 | }; 349 | A6C0AF2D1D798895000F615E /* PBXTargetDependency */ = { 350 | isa = PBXTargetDependency; 351 | target = A6C0AF061D798895000F615E /* LTLodingView */; 352 | targetProxy = A6C0AF2C1D798895000F615E /* PBXContainerItemProxy */; 353 | }; 354 | /* End PBXTargetDependency section */ 355 | 356 | /* Begin PBXVariantGroup section */ 357 | A6C0AF131D798895000F615E /* Main.storyboard */ = { 358 | isa = PBXVariantGroup; 359 | children = ( 360 | A6C0AF141D798895000F615E /* Base */, 361 | ); 362 | name = Main.storyboard; 363 | sourceTree = ""; 364 | }; 365 | A6C0AF181D798895000F615E /* LaunchScreen.storyboard */ = { 366 | isa = PBXVariantGroup; 367 | children = ( 368 | A6C0AF191D798895000F615E /* Base */, 369 | ); 370 | name = LaunchScreen.storyboard; 371 | sourceTree = ""; 372 | }; 373 | /* End PBXVariantGroup section */ 374 | 375 | /* Begin XCBuildConfiguration section */ 376 | A6C0AF321D798895000F615E /* Debug */ = { 377 | isa = XCBuildConfiguration; 378 | buildSettings = { 379 | ALWAYS_SEARCH_USER_PATHS = NO; 380 | CLANG_ANALYZER_NONNULL = YES; 381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BOOL_CONVERSION = YES; 386 | CLANG_WARN_CONSTANT_CONVERSION = YES; 387 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 388 | CLANG_WARN_EMPTY_BODY = YES; 389 | CLANG_WARN_ENUM_CONVERSION = YES; 390 | CLANG_WARN_INT_CONVERSION = YES; 391 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 392 | CLANG_WARN_UNREACHABLE_CODE = YES; 393 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 394 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 395 | COPY_PHASE_STRIP = NO; 396 | DEBUG_INFORMATION_FORMAT = dwarf; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | ENABLE_TESTABILITY = YES; 399 | GCC_C_LANGUAGE_STANDARD = gnu99; 400 | GCC_DYNAMIC_NO_PIC = NO; 401 | GCC_NO_COMMON_BLOCKS = YES; 402 | GCC_OPTIMIZATION_LEVEL = 0; 403 | GCC_PREPROCESSOR_DEFINITIONS = ( 404 | "DEBUG=1", 405 | "$(inherited)", 406 | ); 407 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 408 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 409 | GCC_WARN_UNDECLARED_SELECTOR = YES; 410 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 411 | GCC_WARN_UNUSED_FUNCTION = YES; 412 | GCC_WARN_UNUSED_VARIABLE = YES; 413 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 414 | MTL_ENABLE_DEBUG_INFO = YES; 415 | ONLY_ACTIVE_ARCH = YES; 416 | SDKROOT = iphoneos; 417 | TARGETED_DEVICE_FAMILY = "1,2"; 418 | }; 419 | name = Debug; 420 | }; 421 | A6C0AF331D798895000F615E /* Release */ = { 422 | isa = XCBuildConfiguration; 423 | buildSettings = { 424 | ALWAYS_SEARCH_USER_PATHS = NO; 425 | CLANG_ANALYZER_NONNULL = YES; 426 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 427 | CLANG_CXX_LIBRARY = "libc++"; 428 | CLANG_ENABLE_MODULES = YES; 429 | CLANG_ENABLE_OBJC_ARC = YES; 430 | CLANG_WARN_BOOL_CONVERSION = YES; 431 | CLANG_WARN_CONSTANT_CONVERSION = YES; 432 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 433 | CLANG_WARN_EMPTY_BODY = YES; 434 | CLANG_WARN_ENUM_CONVERSION = YES; 435 | CLANG_WARN_INT_CONVERSION = YES; 436 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 437 | CLANG_WARN_UNREACHABLE_CODE = YES; 438 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 439 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 440 | COPY_PHASE_STRIP = NO; 441 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 442 | ENABLE_NS_ASSERTIONS = NO; 443 | ENABLE_STRICT_OBJC_MSGSEND = YES; 444 | GCC_C_LANGUAGE_STANDARD = gnu99; 445 | GCC_NO_COMMON_BLOCKS = YES; 446 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 447 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 448 | GCC_WARN_UNDECLARED_SELECTOR = YES; 449 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 450 | GCC_WARN_UNUSED_FUNCTION = YES; 451 | GCC_WARN_UNUSED_VARIABLE = YES; 452 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 453 | MTL_ENABLE_DEBUG_INFO = NO; 454 | SDKROOT = iphoneos; 455 | TARGETED_DEVICE_FAMILY = "1,2"; 456 | VALIDATE_PRODUCT = YES; 457 | }; 458 | name = Release; 459 | }; 460 | A6C0AF351D798895000F615E /* Debug */ = { 461 | isa = XCBuildConfiguration; 462 | buildSettings = { 463 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 464 | INFOPLIST_FILE = LTLodingView/Info.plist; 465 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 466 | PRODUCT_BUNDLE_IDENTIFIER = lt.LTLodingView; 467 | PRODUCT_NAME = "$(TARGET_NAME)"; 468 | }; 469 | name = Debug; 470 | }; 471 | A6C0AF361D798895000F615E /* Release */ = { 472 | isa = XCBuildConfiguration; 473 | buildSettings = { 474 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 475 | INFOPLIST_FILE = LTLodingView/Info.plist; 476 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 477 | PRODUCT_BUNDLE_IDENTIFIER = lt.LTLodingView; 478 | PRODUCT_NAME = "$(TARGET_NAME)"; 479 | }; 480 | name = Release; 481 | }; 482 | A6C0AF381D798895000F615E /* Debug */ = { 483 | isa = XCBuildConfiguration; 484 | buildSettings = { 485 | BUNDLE_LOADER = "$(TEST_HOST)"; 486 | INFOPLIST_FILE = LTLodingViewTests/Info.plist; 487 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 488 | PRODUCT_BUNDLE_IDENTIFIER = lt.LTLodingViewTests; 489 | PRODUCT_NAME = "$(TARGET_NAME)"; 490 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LTLodingView.app/LTLodingView"; 491 | }; 492 | name = Debug; 493 | }; 494 | A6C0AF391D798895000F615E /* Release */ = { 495 | isa = XCBuildConfiguration; 496 | buildSettings = { 497 | BUNDLE_LOADER = "$(TEST_HOST)"; 498 | INFOPLIST_FILE = LTLodingViewTests/Info.plist; 499 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 500 | PRODUCT_BUNDLE_IDENTIFIER = lt.LTLodingViewTests; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LTLodingView.app/LTLodingView"; 503 | }; 504 | name = Release; 505 | }; 506 | A6C0AF3B1D798895000F615E /* Debug */ = { 507 | isa = XCBuildConfiguration; 508 | buildSettings = { 509 | INFOPLIST_FILE = LTLodingViewUITests/Info.plist; 510 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 511 | PRODUCT_BUNDLE_IDENTIFIER = lt.LTLodingViewUITests; 512 | PRODUCT_NAME = "$(TARGET_NAME)"; 513 | TEST_TARGET_NAME = LTLodingView; 514 | }; 515 | name = Debug; 516 | }; 517 | A6C0AF3C1D798895000F615E /* Release */ = { 518 | isa = XCBuildConfiguration; 519 | buildSettings = { 520 | INFOPLIST_FILE = LTLodingViewUITests/Info.plist; 521 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 522 | PRODUCT_BUNDLE_IDENTIFIER = lt.LTLodingViewUITests; 523 | PRODUCT_NAME = "$(TARGET_NAME)"; 524 | TEST_TARGET_NAME = LTLodingView; 525 | }; 526 | name = Release; 527 | }; 528 | /* End XCBuildConfiguration section */ 529 | 530 | /* Begin XCConfigurationList section */ 531 | A6C0AF021D798895000F615E /* Build configuration list for PBXProject "LTLodingView" */ = { 532 | isa = XCConfigurationList; 533 | buildConfigurations = ( 534 | A6C0AF321D798895000F615E /* Debug */, 535 | A6C0AF331D798895000F615E /* Release */, 536 | ); 537 | defaultConfigurationIsVisible = 0; 538 | defaultConfigurationName = Release; 539 | }; 540 | A6C0AF341D798895000F615E /* Build configuration list for PBXNativeTarget "LTLodingView" */ = { 541 | isa = XCConfigurationList; 542 | buildConfigurations = ( 543 | A6C0AF351D798895000F615E /* Debug */, 544 | A6C0AF361D798895000F615E /* Release */, 545 | ); 546 | defaultConfigurationIsVisible = 0; 547 | defaultConfigurationName = Release; 548 | }; 549 | A6C0AF371D798895000F615E /* Build configuration list for PBXNativeTarget "LTLodingViewTests" */ = { 550 | isa = XCConfigurationList; 551 | buildConfigurations = ( 552 | A6C0AF381D798895000F615E /* Debug */, 553 | A6C0AF391D798895000F615E /* Release */, 554 | ); 555 | defaultConfigurationIsVisible = 0; 556 | defaultConfigurationName = Release; 557 | }; 558 | A6C0AF3A1D798895000F615E /* Build configuration list for PBXNativeTarget "LTLodingViewUITests" */ = { 559 | isa = XCConfigurationList; 560 | buildConfigurations = ( 561 | A6C0AF3B1D798895000F615E /* Debug */, 562 | A6C0AF3C1D798895000F615E /* Release */, 563 | ); 564 | defaultConfigurationIsVisible = 0; 565 | defaultConfigurationName = Release; 566 | }; 567 | /* End XCConfigurationList section */ 568 | }; 569 | rootObject = A6C0AEFF1D798895000F615E /* Project object */; 570 | } 571 | -------------------------------------------------------------------------------- /LTLodingView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /LTLodingView.xcodeproj/xcuserdata/litao.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /LTLodingView.xcodeproj/xcuserdata/litao.xcuserdatad/xcschemes/LTLodingView.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 | -------------------------------------------------------------------------------- /LTLodingView.xcodeproj/xcuserdata/litao.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | LTLodingView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | A6C0AF061D798895000F615E 16 | 17 | primary 18 | 19 | 20 | A6C0AF1F1D798895000F615E 21 | 22 | primary 23 | 24 | 25 | A6C0AF2A1D798895000F615E 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /LTLodingView/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // LTLodingView 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. 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 | -------------------------------------------------------------------------------- /LTLodingView/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // LTLodingView 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. 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 | -------------------------------------------------------------------------------- /LTLodingView/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 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "83.5x83.5", 66 | "scale" : "2x" 67 | } 68 | ], 69 | "info" : { 70 | "version" : 1, 71 | "author" : "xcode" 72 | } 73 | } -------------------------------------------------------------------------------- /LTLodingView/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 | -------------------------------------------------------------------------------- /LTLodingView/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 | 33 | 39 | 45 | 51 | 63 | 69 | 81 | 87 | 99 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /LTLodingView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSAppTransportSecurity 6 | 7 | NSAllowsArbitraryLoads 8 | 9 | 10 | CFBundleDevelopmentRegion 11 | en 12 | CFBundleExecutable 13 | $(EXECUTABLE_NAME) 14 | CFBundleIdentifier 15 | $(PRODUCT_BUNDLE_IDENTIFIER) 16 | CFBundleInfoDictionaryVersion 17 | 6.0 18 | CFBundleName 19 | $(PRODUCT_NAME) 20 | CFBundlePackageType 21 | APPL 22 | CFBundleShortVersionString 23 | 1.0 24 | CFBundleSignature 25 | ???? 26 | CFBundleVersion 27 | 1 28 | LSRequiresIPhoneOS 29 | 30 | UILaunchStoryboardName 31 | LaunchScreen 32 | UIMainStoryboardFile 33 | Main 34 | UIRequiredDeviceCapabilities 35 | 36 | armv7 37 | 38 | UISupportedInterfaceOrientations 39 | 40 | UIInterfaceOrientationPortrait 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UISupportedInterfaceOrientations~ipad 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationPortraitUpsideDown 48 | UIInterfaceOrientationLandscapeLeft 49 | UIInterfaceOrientationLandscapeRight 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /LTLodingView/LTLodingView/UIImage+LT_git.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+LT_git.h 3 | // Yue 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIImage (LT_git) 12 | + (UIImage *)lt_animatedGIFWithData:(NSData *)data ; 13 | + (UIImage *)lt_animatedGIFNamed:(NSString *)name; 14 | @end 15 | -------------------------------------------------------------------------------- /LTLodingView/LTLodingView/UIImage+LT_git.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+LT_git.m 3 | // Yue 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import "UIImage+LT_git.h" 10 | #import 11 | @implementation UIImage (LT_git) 12 | + (UIImage *)lt_animatedGIFWithData:(NSData *)data { 13 | if (!data) { 14 | return nil; 15 | } 16 | 17 | CGImageSourceRef source = CGImageSourceCreateWithData((__bridge CFDataRef)data, NULL); 18 | 19 | size_t count = CGImageSourceGetCount(source); 20 | 21 | UIImage *animatedImage; 22 | 23 | if (count <= 1) { 24 | animatedImage = [[UIImage alloc] initWithData:data]; 25 | } 26 | else { 27 | NSMutableArray *images = [NSMutableArray array]; 28 | 29 | NSTimeInterval duration = 0.0f; 30 | 31 | for (size_t i = 0; i < count; i++) { 32 | CGImageRef image = CGImageSourceCreateImageAtIndex(source, i, NULL); 33 | 34 | duration += [self lt_frameDurationAtIndex:i source:source]; 35 | 36 | [images addObject:[UIImage imageWithCGImage:image scale:[UIScreen mainScreen].scale orientation:UIImageOrientationUp]]; 37 | 38 | CGImageRelease(image); 39 | } 40 | 41 | if (!duration) { 42 | duration = (1.0f / 10.0f) * count; 43 | } 44 | 45 | animatedImage = [UIImage animatedImageWithImages:images duration:duration]; 46 | } 47 | 48 | CFRelease(source); 49 | 50 | return animatedImage; 51 | } 52 | 53 | + (float)lt_frameDurationAtIndex:(NSUInteger)index source:(CGImageSourceRef)source { 54 | float frameDuration = 0.1f; 55 | CFDictionaryRef cfFrameProperties = CGImageSourceCopyPropertiesAtIndex(source, index, nil); 56 | NSDictionary *frameProperties = (__bridge NSDictionary *)cfFrameProperties; 57 | NSDictionary *gifProperties = frameProperties[(NSString *)kCGImagePropertyGIFDictionary]; 58 | 59 | NSNumber *delayTimeUnclampedProp = gifProperties[(NSString *)kCGImagePropertyGIFUnclampedDelayTime]; 60 | if (delayTimeUnclampedProp) { 61 | frameDuration = [delayTimeUnclampedProp floatValue]; 62 | } 63 | else { 64 | 65 | NSNumber *delayTimeProp = gifProperties[(NSString *)kCGImagePropertyGIFDelayTime]; 66 | if (delayTimeProp) { 67 | frameDuration = [delayTimeProp floatValue]; 68 | } 69 | } 70 | 71 | if (frameDuration < 0.011f) { 72 | frameDuration = 0.100f; 73 | } 74 | 75 | CFRelease(cfFrameProperties); 76 | return frameDuration; 77 | } 78 | 79 | + (UIImage *)lt_animatedGIFNamed:(NSString *)name { 80 | CGFloat scale = [UIScreen mainScreen].scale; 81 | 82 | if (scale > 1.0f) { 83 | NSString *retinaPath = [[NSBundle mainBundle] pathForResource:[name stringByAppendingString:@"@2x"] ofType:@"gif"]; 84 | 85 | NSData *data = [NSData dataWithContentsOfFile:retinaPath]; 86 | 87 | if (data) { 88 | return [UIImage lt_animatedGIFWithData:data]; 89 | } 90 | 91 | NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@"gif"]; 92 | 93 | data = [NSData dataWithContentsOfFile:path]; 94 | 95 | if (data) { 96 | return [UIImage lt_animatedGIFWithData:data]; 97 | } 98 | 99 | return [UIImage imageNamed:name]; 100 | } 101 | else { 102 | NSString *path = [[NSBundle mainBundle] pathForResource:name ofType:@"gif"]; 103 | 104 | NSData *data = [NSData dataWithContentsOfFile:path]; 105 | 106 | if (data) { 107 | return [UIImage lt_animatedGIFWithData:data]; 108 | } 109 | 110 | return [UIImage imageNamed:name]; 111 | } 112 | } 113 | @end 114 | -------------------------------------------------------------------------------- /LTLodingView/LTLodingView/UIImageView+LT_loding.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImageView+LT_loding.h 3 | // Yue 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIImageView (LT_loding) 12 | - (void)lt_setImageWithUrl:(NSString*)url; 13 | - (void)lt_setImageWithName:(NSString*)name; 14 | @end 15 | -------------------------------------------------------------------------------- /LTLodingView/LTLodingView/UIImageView+LT_loding.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIImageView+LT_loding.m 3 | // Yue 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import "UIImageView+LT_loding.h" 10 | #import "UIImage+LT_git.h" 11 | 12 | @implementation UIImageView (LT_loding) 13 | -(void)getImageFromURL:(NSString *)fileURL callBack:(void(^)(UIImage* image))callBack{ 14 | dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0); 15 | dispatch_async(queue, ^{ 16 | UIImage * result; 17 | NSData * data = [NSData dataWithContentsOfURL:[NSURL URLWithString:fileURL]]; 18 | result = [UIImage lt_animatedGIFWithData:data]; 19 | if (callBack) { 20 | callBack(result); 21 | } 22 | 23 | }); 24 | } 25 | 26 | - (void)lt_setImageWithUrl:(NSString*)url{ 27 | [self getImageFromURL:url callBack:^(UIImage *image) { 28 | dispatch_async(dispatch_get_main_queue(), ^{ 29 | self.image = image; 30 | }); 31 | 32 | }]; 33 | } 34 | 35 | - (void)lt_setImageWithName:(NSString*)name{ 36 | self.image = [UIImage lt_animatedGIFNamed:name]; 37 | } 38 | @end 39 | -------------------------------------------------------------------------------- /LTLodingView/LTLodingView/UIView+LT_loding.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+LT_loding.h 3 | // Yue 4 | // 5 | // Created by 李涛 on 16/8/31. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIView (LT_loding) 12 | @property (nonatomic,strong) UIView * bgView; 13 | @property (nonatomic,strong) UIColor * bgColor;//背景颜色 14 | @property (nonatomic,assign) CGSize lt_size;//自定义大小 15 | @property (nonatomic,assign) CGFloat lt_cornerRadius;//自定义圆角半径 16 | //@property(nonatomic,strong)void (^activityIndicatorBlock)(UIActivityIndicatorView*); 17 | 18 | /** 19 | * 默认动画 20 | * 21 | * @param duration view从原来形状变化为圆形所需时间 22 | */ 23 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration; 24 | 25 | /** 26 | * 默认结束动画 27 | * 28 | * @param duration view从圆形还原为原来形状的时间 29 | */ 30 | -(void)lt_endAnimationDuration:(NSTimeInterval)duration; 31 | 32 | /** 33 | * 可设置自定义view自定义速度的旋转动画 34 | * 35 | * @param duration view从原来形状变化为圆形所需时间 36 | * @param view 设置自定义的view 37 | * @param velocity 旋转一周所需的时间(如果不需要旋转,可以设置为0) 38 | */ 39 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration View:(UIView*)view velocity:(CGFloat)velocity; 40 | 41 | /** 42 | * 变形动画结束时的回调 43 | * 44 | * @param duration view从原来形状变化为圆形所需时间 45 | * @param loadingBlock 变形动画结束时回调 bgView为变形后的view(非变形前的view) 46 | */ 47 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration loadingBlock:(void(^)(UIView* bgView))loadingBlock; 48 | 49 | /** 50 | * 变形动画结束时的回调,可在block里修改默认动画的动画样式 51 | * 52 | * @param duration view从原来形状变化为圆形所需时间 53 | * @param activityIndicatorBlock 变形动画结束时回调 可修改acitivityView来改变默认动画的效果 54 | */ 55 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration activityIndicatorBlock:(void (^)(UIActivityIndicatorView* acitivityView))activityIndicatorBlock; 56 | 57 | /** 58 | * 变形动画结束时的回调 这里可以高度个性化的定义自己的动画效果 59 | * 60 | * @param duration view从原来形状变化为圆形所需时间 61 | * @param view 自定义的view 62 | * @param animation bgView为变形后的view(非变形前的view) view为自定义的view 63 | */ 64 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration View:(UIView*)view animation:(void (^)(UIView* bgView, UIView* view))animation; 65 | 66 | /** 67 | * 通过url加载gif图片来设置loding效果 68 | * 69 | * @param duration view从原来形状变化为圆形所需时间 70 | * @param url gif图片地址 71 | */ 72 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration withUrl:(NSString*)url; 73 | 74 | /** 75 | * 通过包里的gif图片来设置loding效果 76 | * 77 | * @param duration view从原来形状变化为圆形所需时间 78 | * @param name gif图片名称 79 | */ 80 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration withName:(NSString*)name; 81 | @end 82 | 83 | -------------------------------------------------------------------------------- /LTLodingView/LTLodingView/UIView+LT_loding.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+LT_loding.m 3 | // Yue 4 | // 5 | // Created by 李涛 on 16/8/31. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import "UIView+LT_loding.h" 10 | #import 11 | #import "UIImageView+LT_loding.h" 12 | @implementation UIView (LT_loding) 13 | static char* LT_BgViewKey = "bgViewKey"; 14 | static char* LT_BgColor = "bgColor"; 15 | static char* LT_Size = "size"; 16 | static char* LT_Radius = "radius"; 17 | 18 | 19 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration{ 20 | [self lt_starAnimationDuration:duration activityIndicatorBlock:nil]; 21 | } 22 | 23 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration loadingBlock:(void(^)(UIView* bgView))loadingBlock{ 24 | self.hidden = YES; 25 | CGRect rect = self.frame; 26 | CGPoint point = self.center; 27 | 28 | UIView* bgView = [[UIView alloc]initWithFrame:self.frame]; 29 | self.bgView = bgView; 30 | 31 | [self.superview insertSubview:bgView aboveSubview:self]; 32 | if (self.bgColor) { 33 | bgView.backgroundColor = self.bgColor; 34 | } 35 | else{ 36 | bgView.backgroundColor = self.backgroundColor; 37 | } 38 | 39 | float width = rect.size.width > rect.size.height ? rect.size.height : rect.size.width; 40 | [UIView animateWithDuration:duration animations:^{ 41 | 42 | 43 | bgView.frame = CGRectMake(0, 0, width, width); 44 | if (self.lt_size.width > 0) { 45 | bgView.frame = CGRectMake(0, 0, self.lt_size.width, self.lt_size.height); 46 | } 47 | bgView.center = point; 48 | bgView.layer.cornerRadius = width/2; 49 | if (self.lt_cornerRadius > 0) { 50 | bgView.layer.cornerRadius = self.lt_cornerRadius; 51 | } 52 | } completion:^(BOOL finished) { 53 | if (loadingBlock) { 54 | loadingBlock(bgView); 55 | } 56 | }]; 57 | } 58 | 59 | 60 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration activityIndicatorBlock:(void (^)(UIActivityIndicatorView* acitivityView))activityIndicatorBlock{ 61 | 62 | [self lt_starAnimationDuration:duration loadingBlock:^(UIView *bgView) { 63 | UIActivityIndicatorView* acitivityView = [[UIActivityIndicatorView alloc]initWithFrame:bgView.bounds]; 64 | [bgView addSubview:acitivityView]; 65 | if (activityIndicatorBlock) { 66 | activityIndicatorBlock(acitivityView); 67 | } 68 | [acitivityView startAnimating]; 69 | }]; 70 | } 71 | 72 | 73 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration View:(UIView*)view velocity:(CGFloat)velocity{ 74 | [self lt_starAnimationDuration:duration View:view animation:^(UIView *bgView, UIView *view) { 75 | 76 | [UIView animateWithDuration:velocity delay:0 options:UIViewAnimationOptionRepeat animations:^{ 77 | view.transform = CGAffineTransformMakeRotation(2 * M_PI); 78 | } completion:^(BOOL finished) { 79 | 80 | }]; 81 | [view.layer addAnimation:[self rotation:velocity] forKey:nil]; 82 | }]; 83 | } 84 | 85 | 86 | 87 | 88 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration View:(UIView*)view animation:(void (^)(UIView* bgView, UIView* view))animation{ 89 | [self lt_starAnimationDuration:duration loadingBlock:^(UIView *bgView) { 90 | view.frame = bgView.bounds; 91 | [bgView addSubview:view]; 92 | if (animation) { 93 | animation(bgView,view); 94 | } 95 | }]; 96 | } 97 | 98 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration withUrl:(NSString*)url{ 99 | UIImageView* imageView = [[UIImageView alloc]init]; 100 | [imageView lt_setImageWithUrl:url]; 101 | [self lt_starAnimationDuration:duration View:imageView velocity:0]; 102 | } 103 | 104 | -(void)lt_starAnimationDuration:(NSTimeInterval)duration withName:(NSString*)name{ 105 | UIImageView* imageView = [[UIImageView alloc]init]; 106 | [imageView lt_setImageWithName:name]; 107 | if (self.lt_size.width == 0) { 108 | UIImage* img = imageView.image; 109 | float proportion = img.size.width/img.size.height; 110 | CGSize size = CGSizeMake(self.frame.size.height * proportion, self.frame.size.height); 111 | self.lt_size = size; 112 | } 113 | [self lt_starAnimationDuration:duration View:imageView velocity:0]; 114 | } 115 | 116 | 117 | 118 | -(void)lt_endAnimationDuration:(NSTimeInterval)duration{ 119 | CGPoint point = self.center; 120 | [self.bgView.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) { 121 | [obj removeFromSuperview]; 122 | }]; 123 | self.hidden = NO; 124 | self.alpha = 0; 125 | [UIView animateWithDuration:duration animations:^{ 126 | self.bgView.frame = self.frame; 127 | self.bgView.center = point; 128 | self.layer.cornerRadius = self.layer.cornerRadius; 129 | self.bgView.alpha = 0; 130 | self.alpha = 1; 131 | 132 | } completion:^(BOOL finished) { 133 | [self.bgView removeFromSuperview]; 134 | self.hidden = NO; 135 | }]; 136 | } 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | -(void)setBgView:(UIView *)bgView{ 145 | objc_setAssociatedObject(self, <_BgViewKey, bgView, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 146 | } 147 | -(UIView *)bgView{ 148 | return objc_getAssociatedObject(self, <_BgViewKey); 149 | } 150 | -(void)setBgColor:(UIColor *)bgColor{ 151 | objc_setAssociatedObject(self, <_BgColor, bgColor, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 152 | } 153 | -(UIColor *)bgColor{ 154 | return objc_getAssociatedObject(self, <_BgColor); 155 | } 156 | -(void)setLt_size:(CGSize)lt_size{ 157 | objc_setAssociatedObject(self, <_Size, [NSValue valueWithCGSize:lt_size], OBJC_ASSOCIATION_RETAIN); 158 | } 159 | -(CGSize)lt_size{ 160 | NSValue* value = objc_getAssociatedObject(self, <_Size); 161 | return [value CGSizeValue]; 162 | } 163 | -(void)setLt_cornerRadius:(CGFloat)lt_cornerRadius{ 164 | objc_setAssociatedObject(self, <_Radius, @(lt_cornerRadius), OBJC_ASSOCIATION_RETAIN); 165 | } 166 | -(CGFloat)lt_cornerRadius{ 167 | NSNumber* radius = objc_getAssociatedObject(self, <_Radius); 168 | return radius.floatValue; 169 | } 170 | 171 | #pragma mark ====旋转动画====== 172 | -(CABasicAnimation *)rotation:(float)dur 173 | { 174 | if (dur <= 0) { 175 | return nil; 176 | } 177 | //设置动画 178 | CABasicAnimation* rotationAnimation; 179 | rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]; 180 | rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0 ]; 181 | rotationAnimation.duration = dur; 182 | rotationAnimation.cumulative = YES; 183 | rotationAnimation.repeatCount = 1000000; 184 | rotationAnimation.removedOnCompletion = NO; 185 | return rotationAnimation; 186 | } 187 | 188 | @end 189 | -------------------------------------------------------------------------------- /LTLodingView/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // LTLodingView 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /LTLodingView/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // LTLodingView 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "UIView+LT_loding.h" 11 | 12 | @interface ViewController () 13 | @property (strong, nonatomic) IBOutletCollection(UIView) NSArray *animationViews; 14 | 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | - (void)viewDidLoad { 20 | [super viewDidLoad]; 21 | // Do any additional setup after loading the view, typically from a nib. 22 | } 23 | 24 | - (void)didReceiveMemoryWarning { 25 | [super didReceiveMemoryWarning]; 26 | // Dispose of any resources that can be recreated. 27 | } 28 | //默认 29 | - (IBAction)loding1:(UIView*)sender { 30 | [sender lt_starAnimationDuration:0.5]; 31 | [self endAnimation:sender]; 32 | 33 | } 34 | //编辑默认 35 | - (IBAction)loding2:(UIView*)sender { 36 | [sender lt_starAnimationDuration:0.5 activityIndicatorBlock:^(UIActivityIndicatorView *acitivityView) { 37 | [acitivityView setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleWhiteLarge]; 38 | }]; 39 | [self endAnimation:sender]; 40 | } 41 | 42 | //本地gif 43 | - (IBAction)loding3:(UIView*)sender { 44 | [sender lt_starAnimationDuration:0.5 withName:@"loding"]; 45 | [self endAnimation:sender]; 46 | } 47 | 48 | //网络图片 49 | - (IBAction)loding4:(UIView*)sender { 50 | [sender lt_starAnimationDuration:0.5 withUrl:@"http://cdn.uehtml.com/201402/1392662616656_1140x0.gif"]; 51 | [self endAnimation:sender]; 52 | 53 | 54 | } 55 | 56 | //旋转图片 57 | - (IBAction)loding5:(UIButton *)sender { 58 | UIImageView* view = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"loding.gif"]]; 59 | view.layer.cornerRadius = sender.bounds.size.width/2; 60 | [view setClipsToBounds:YES]; 61 | [sender lt_starAnimationDuration:0.5 View:view velocity:1]; 62 | [self endAnimation:sender]; 63 | } 64 | 65 | 66 | 67 | //结束动画 68 | - (void)endAnimation:(UIView*)sender{ 69 | 70 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ 71 | [sender lt_endAnimationDuration:0.3]; 72 | }); 73 | } 74 | @end 75 | -------------------------------------------------------------------------------- /LTLodingView/loding.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liTao-leven/LTLodingView/eb725bd6bd7795ead5508a933a360de65ff46ff7/LTLodingView/loding.gif -------------------------------------------------------------------------------- /LTLodingView/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // LTLodingView 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. 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 | -------------------------------------------------------------------------------- /LTLodingViewTests/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 | -------------------------------------------------------------------------------- /LTLodingViewTests/LTLodingViewTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // LTLodingViewTests.m 3 | // LTLodingViewTests 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LTLodingViewTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation LTLodingViewTests 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 | -------------------------------------------------------------------------------- /LTLodingViewUITests/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 | -------------------------------------------------------------------------------- /LTLodingViewUITests/LTLodingViewUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // LTLodingViewUITests.m 3 | // LTLodingViewUITests 4 | // 5 | // Created by 李涛 on 16/9/2. 6 | // Copyright © 2016年 李涛. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LTLodingViewUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation LTLodingViewUITests 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # LTLodingView 3 | 4 | 快速的为view添加loding效果 5 | 支持默认效果 6 | 添加本地图片 7 | 添加gif图片 8 | 添加网络图片 9 | 自定义旋转时长 10 | 以及更多的自定义效果,详细内容请参考头文件 11 | 12 | ### 演示: 13 | ![效果一览](https://raw.githubusercontent.com/liTao-leven/LTLodingView/master/Resource/Untitled.gif) 14 | 15 | ### 配合转场效果 16 | ![效果一览](https://raw.githubusercontent.com/liTao-leven/LTLodingView/master/Resource/loding.gif) 17 | 18 | ### 使用方法 19 | 将LTLodingView文件夹拖入项目中 在使用的地方#import "UIView+LT_loding.h" 具体参考demo 20 | -------------------------------------------------------------------------------- /Resource/Untitled.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liTao-leven/LTLodingView/eb725bd6bd7795ead5508a933a360de65ff46ff7/Resource/Untitled.gif -------------------------------------------------------------------------------- /Resource/loding.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liTao-leven/LTLodingView/eb725bd6bd7795ead5508a933a360de65ff46ff7/Resource/loding.gif --------------------------------------------------------------------------------