├── CloneTaobaoProductsDetails.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── Elvira.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── Elvira.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist ├── CloneTaobaoProductsDetails ├── 0.JPG ├── 1.JPG ├── 2.JPG ├── 3.JPG ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── LZProductDetails.h ├── LZProductDetails.m ├── ViewController.h ├── ViewController.m ├── main.m ├── play@2x.png └── play@3x.png └── README.md /CloneTaobaoProductsDetails.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 247D1C0320060A0C000EBFF2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 247D1C0220060A0C000EBFF2 /* AppDelegate.m */; }; 11 | 247D1C0620060A0C000EBFF2 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 247D1C0520060A0C000EBFF2 /* ViewController.m */; }; 12 | 247D1C0920060A0C000EBFF2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 247D1C0720060A0C000EBFF2 /* Main.storyboard */; }; 13 | 247D1C0B20060A0C000EBFF2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 247D1C0A20060A0C000EBFF2 /* Assets.xcassets */; }; 14 | 247D1C0E20060A0C000EBFF2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 247D1C0C20060A0C000EBFF2 /* LaunchScreen.storyboard */; }; 15 | 247D1C1120060A0C000EBFF2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 247D1C1020060A0C000EBFF2 /* main.m */; }; 16 | 247D1C1920060A26000EBFF2 /* play@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 247D1C1720060A26000EBFF2 /* play@2x.png */; }; 17 | 247D1C1A20060A26000EBFF2 /* play@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 247D1C1820060A26000EBFF2 /* play@3x.png */; }; 18 | 247D1C1F20060A44000EBFF2 /* 3.JPG in Resources */ = {isa = PBXBuildFile; fileRef = 247D1C1B20060A43000EBFF2 /* 3.JPG */; }; 19 | 247D1C2020060A44000EBFF2 /* 2.JPG in Resources */ = {isa = PBXBuildFile; fileRef = 247D1C1C20060A43000EBFF2 /* 2.JPG */; }; 20 | 247D1C2120060A44000EBFF2 /* 1.JPG in Resources */ = {isa = PBXBuildFile; fileRef = 247D1C1D20060A43000EBFF2 /* 1.JPG */; }; 21 | 247D1C2220060A44000EBFF2 /* 0.JPG in Resources */ = {isa = PBXBuildFile; fileRef = 247D1C1E20060A44000EBFF2 /* 0.JPG */; }; 22 | 247D1C2520060A5B000EBFF2 /* LZProductDetails.m in Sources */ = {isa = PBXBuildFile; fileRef = 247D1C2420060A5B000EBFF2 /* LZProductDetails.m */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | 247D1BFE20060A0C000EBFF2 /* CloneTaobaoProductsDetails.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CloneTaobaoProductsDetails.app; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 247D1C0120060A0C000EBFF2 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 28 | 247D1C0220060A0C000EBFF2 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 29 | 247D1C0420060A0C000EBFF2 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 30 | 247D1C0520060A0C000EBFF2 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 31 | 247D1C0820060A0C000EBFF2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 32 | 247D1C0A20060A0C000EBFF2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 33 | 247D1C0D20060A0C000EBFF2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 34 | 247D1C0F20060A0C000EBFF2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 247D1C1020060A0C000EBFF2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 36 | 247D1C1720060A26000EBFF2 /* play@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "play@2x.png"; sourceTree = ""; }; 37 | 247D1C1820060A26000EBFF2 /* play@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "play@3x.png"; sourceTree = ""; }; 38 | 247D1C1B20060A43000EBFF2 /* 3.JPG */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 3.JPG; sourceTree = ""; }; 39 | 247D1C1C20060A43000EBFF2 /* 2.JPG */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 2.JPG; sourceTree = ""; }; 40 | 247D1C1D20060A43000EBFF2 /* 1.JPG */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 1.JPG; sourceTree = ""; }; 41 | 247D1C1E20060A44000EBFF2 /* 0.JPG */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = 0.JPG; sourceTree = ""; }; 42 | 247D1C2320060A5B000EBFF2 /* LZProductDetails.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LZProductDetails.h; sourceTree = ""; }; 43 | 247D1C2420060A5B000EBFF2 /* LZProductDetails.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LZProductDetails.m; sourceTree = ""; }; 44 | /* End PBXFileReference section */ 45 | 46 | /* Begin PBXFrameworksBuildPhase section */ 47 | 247D1BFB20060A0C000EBFF2 /* Frameworks */ = { 48 | isa = PBXFrameworksBuildPhase; 49 | buildActionMask = 2147483647; 50 | files = ( 51 | ); 52 | runOnlyForDeploymentPostprocessing = 0; 53 | }; 54 | /* End PBXFrameworksBuildPhase section */ 55 | 56 | /* Begin PBXGroup section */ 57 | 247D1BF520060A0C000EBFF2 = { 58 | isa = PBXGroup; 59 | children = ( 60 | 247D1C0020060A0C000EBFF2 /* CloneTaobaoProductsDetails */, 61 | 247D1BFF20060A0C000EBFF2 /* Products */, 62 | ); 63 | sourceTree = ""; 64 | }; 65 | 247D1BFF20060A0C000EBFF2 /* Products */ = { 66 | isa = PBXGroup; 67 | children = ( 68 | 247D1BFE20060A0C000EBFF2 /* CloneTaobaoProductsDetails.app */, 69 | ); 70 | name = Products; 71 | sourceTree = ""; 72 | }; 73 | 247D1C0020060A0C000EBFF2 /* CloneTaobaoProductsDetails */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 247D1C2320060A5B000EBFF2 /* LZProductDetails.h */, 77 | 247D1C2420060A5B000EBFF2 /* LZProductDetails.m */, 78 | 247D1C1E20060A44000EBFF2 /* 0.JPG */, 79 | 247D1C1D20060A43000EBFF2 /* 1.JPG */, 80 | 247D1C1C20060A43000EBFF2 /* 2.JPG */, 81 | 247D1C1B20060A43000EBFF2 /* 3.JPG */, 82 | 247D1C1720060A26000EBFF2 /* play@2x.png */, 83 | 247D1C1820060A26000EBFF2 /* play@3x.png */, 84 | 247D1C0120060A0C000EBFF2 /* AppDelegate.h */, 85 | 247D1C0220060A0C000EBFF2 /* AppDelegate.m */, 86 | 247D1C0420060A0C000EBFF2 /* ViewController.h */, 87 | 247D1C0520060A0C000EBFF2 /* ViewController.m */, 88 | 247D1C0720060A0C000EBFF2 /* Main.storyboard */, 89 | 247D1C0A20060A0C000EBFF2 /* Assets.xcassets */, 90 | 247D1C0C20060A0C000EBFF2 /* LaunchScreen.storyboard */, 91 | 247D1C0F20060A0C000EBFF2 /* Info.plist */, 92 | 247D1C1020060A0C000EBFF2 /* main.m */, 93 | ); 94 | path = CloneTaobaoProductsDetails; 95 | sourceTree = ""; 96 | }; 97 | /* End PBXGroup section */ 98 | 99 | /* Begin PBXNativeTarget section */ 100 | 247D1BFD20060A0C000EBFF2 /* CloneTaobaoProductsDetails */ = { 101 | isa = PBXNativeTarget; 102 | buildConfigurationList = 247D1C1420060A0C000EBFF2 /* Build configuration list for PBXNativeTarget "CloneTaobaoProductsDetails" */; 103 | buildPhases = ( 104 | 247D1BFA20060A0C000EBFF2 /* Sources */, 105 | 247D1BFB20060A0C000EBFF2 /* Frameworks */, 106 | 247D1BFC20060A0C000EBFF2 /* Resources */, 107 | ); 108 | buildRules = ( 109 | ); 110 | dependencies = ( 111 | ); 112 | name = CloneTaobaoProductsDetails; 113 | productName = CloneTaobaoProductsDetails; 114 | productReference = 247D1BFE20060A0C000EBFF2 /* CloneTaobaoProductsDetails.app */; 115 | productType = "com.apple.product-type.application"; 116 | }; 117 | /* End PBXNativeTarget section */ 118 | 119 | /* Begin PBXProject section */ 120 | 247D1BF620060A0C000EBFF2 /* Project object */ = { 121 | isa = PBXProject; 122 | attributes = { 123 | LastUpgradeCheck = 0920; 124 | ORGANIZATIONNAME = "李真"; 125 | TargetAttributes = { 126 | 247D1BFD20060A0C000EBFF2 = { 127 | CreatedOnToolsVersion = 9.2; 128 | ProvisioningStyle = Automatic; 129 | }; 130 | }; 131 | }; 132 | buildConfigurationList = 247D1BF920060A0C000EBFF2 /* Build configuration list for PBXProject "CloneTaobaoProductsDetails" */; 133 | compatibilityVersion = "Xcode 8.0"; 134 | developmentRegion = en; 135 | hasScannedForEncodings = 0; 136 | knownRegions = ( 137 | en, 138 | Base, 139 | ); 140 | mainGroup = 247D1BF520060A0C000EBFF2; 141 | productRefGroup = 247D1BFF20060A0C000EBFF2 /* Products */; 142 | projectDirPath = ""; 143 | projectRoot = ""; 144 | targets = ( 145 | 247D1BFD20060A0C000EBFF2 /* CloneTaobaoProductsDetails */, 146 | ); 147 | }; 148 | /* End PBXProject section */ 149 | 150 | /* Begin PBXResourcesBuildPhase section */ 151 | 247D1BFC20060A0C000EBFF2 /* Resources */ = { 152 | isa = PBXResourcesBuildPhase; 153 | buildActionMask = 2147483647; 154 | files = ( 155 | 247D1C0E20060A0C000EBFF2 /* LaunchScreen.storyboard in Resources */, 156 | 247D1C0B20060A0C000EBFF2 /* Assets.xcassets in Resources */, 157 | 247D1C1920060A26000EBFF2 /* play@2x.png in Resources */, 158 | 247D1C1F20060A44000EBFF2 /* 3.JPG in Resources */, 159 | 247D1C1A20060A26000EBFF2 /* play@3x.png in Resources */, 160 | 247D1C2120060A44000EBFF2 /* 1.JPG in Resources */, 161 | 247D1C2220060A44000EBFF2 /* 0.JPG in Resources */, 162 | 247D1C2020060A44000EBFF2 /* 2.JPG in Resources */, 163 | 247D1C0920060A0C000EBFF2 /* Main.storyboard in Resources */, 164 | ); 165 | runOnlyForDeploymentPostprocessing = 0; 166 | }; 167 | /* End PBXResourcesBuildPhase section */ 168 | 169 | /* Begin PBXSourcesBuildPhase section */ 170 | 247D1BFA20060A0C000EBFF2 /* Sources */ = { 171 | isa = PBXSourcesBuildPhase; 172 | buildActionMask = 2147483647; 173 | files = ( 174 | 247D1C0620060A0C000EBFF2 /* ViewController.m in Sources */, 175 | 247D1C1120060A0C000EBFF2 /* main.m in Sources */, 176 | 247D1C2520060A5B000EBFF2 /* LZProductDetails.m in Sources */, 177 | 247D1C0320060A0C000EBFF2 /* AppDelegate.m in Sources */, 178 | ); 179 | runOnlyForDeploymentPostprocessing = 0; 180 | }; 181 | /* End PBXSourcesBuildPhase section */ 182 | 183 | /* Begin PBXVariantGroup section */ 184 | 247D1C0720060A0C000EBFF2 /* Main.storyboard */ = { 185 | isa = PBXVariantGroup; 186 | children = ( 187 | 247D1C0820060A0C000EBFF2 /* Base */, 188 | ); 189 | name = Main.storyboard; 190 | sourceTree = ""; 191 | }; 192 | 247D1C0C20060A0C000EBFF2 /* LaunchScreen.storyboard */ = { 193 | isa = PBXVariantGroup; 194 | children = ( 195 | 247D1C0D20060A0C000EBFF2 /* Base */, 196 | ); 197 | name = LaunchScreen.storyboard; 198 | sourceTree = ""; 199 | }; 200 | /* End PBXVariantGroup section */ 201 | 202 | /* Begin XCBuildConfiguration section */ 203 | 247D1C1220060A0C000EBFF2 /* Debug */ = { 204 | isa = XCBuildConfiguration; 205 | buildSettings = { 206 | ALWAYS_SEARCH_USER_PATHS = NO; 207 | CLANG_ANALYZER_NONNULL = YES; 208 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 209 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 210 | CLANG_CXX_LIBRARY = "libc++"; 211 | CLANG_ENABLE_MODULES = YES; 212 | CLANG_ENABLE_OBJC_ARC = YES; 213 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 214 | CLANG_WARN_BOOL_CONVERSION = YES; 215 | CLANG_WARN_COMMA = YES; 216 | CLANG_WARN_CONSTANT_CONVERSION = YES; 217 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 218 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 219 | CLANG_WARN_EMPTY_BODY = YES; 220 | CLANG_WARN_ENUM_CONVERSION = YES; 221 | CLANG_WARN_INFINITE_RECURSION = YES; 222 | CLANG_WARN_INT_CONVERSION = YES; 223 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 224 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 225 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 226 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 227 | CLANG_WARN_STRICT_PROTOTYPES = YES; 228 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 229 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 230 | CLANG_WARN_UNREACHABLE_CODE = YES; 231 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 232 | CODE_SIGN_IDENTITY = "iPhone Developer"; 233 | COPY_PHASE_STRIP = NO; 234 | DEBUG_INFORMATION_FORMAT = dwarf; 235 | ENABLE_STRICT_OBJC_MSGSEND = YES; 236 | ENABLE_TESTABILITY = YES; 237 | GCC_C_LANGUAGE_STANDARD = gnu11; 238 | GCC_DYNAMIC_NO_PIC = NO; 239 | GCC_NO_COMMON_BLOCKS = YES; 240 | GCC_OPTIMIZATION_LEVEL = 0; 241 | GCC_PREPROCESSOR_DEFINITIONS = ( 242 | "DEBUG=1", 243 | "$(inherited)", 244 | ); 245 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 246 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 247 | GCC_WARN_UNDECLARED_SELECTOR = YES; 248 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 249 | GCC_WARN_UNUSED_FUNCTION = YES; 250 | GCC_WARN_UNUSED_VARIABLE = YES; 251 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 252 | MTL_ENABLE_DEBUG_INFO = YES; 253 | ONLY_ACTIVE_ARCH = YES; 254 | SDKROOT = iphoneos; 255 | }; 256 | name = Debug; 257 | }; 258 | 247D1C1320060A0C000EBFF2 /* Release */ = { 259 | isa = XCBuildConfiguration; 260 | buildSettings = { 261 | ALWAYS_SEARCH_USER_PATHS = NO; 262 | CLANG_ANALYZER_NONNULL = YES; 263 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 264 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 265 | CLANG_CXX_LIBRARY = "libc++"; 266 | CLANG_ENABLE_MODULES = YES; 267 | CLANG_ENABLE_OBJC_ARC = YES; 268 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 269 | CLANG_WARN_BOOL_CONVERSION = YES; 270 | CLANG_WARN_COMMA = YES; 271 | CLANG_WARN_CONSTANT_CONVERSION = YES; 272 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 273 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 274 | CLANG_WARN_EMPTY_BODY = YES; 275 | CLANG_WARN_ENUM_CONVERSION = YES; 276 | CLANG_WARN_INFINITE_RECURSION = YES; 277 | CLANG_WARN_INT_CONVERSION = YES; 278 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 279 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 280 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 281 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 282 | CLANG_WARN_STRICT_PROTOTYPES = YES; 283 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 284 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | CODE_SIGN_IDENTITY = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 290 | ENABLE_NS_ASSERTIONS = NO; 291 | ENABLE_STRICT_OBJC_MSGSEND = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu11; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 301 | MTL_ENABLE_DEBUG_INFO = NO; 302 | SDKROOT = iphoneos; 303 | VALIDATE_PRODUCT = YES; 304 | }; 305 | name = Release; 306 | }; 307 | 247D1C1520060A0C000EBFF2 /* Debug */ = { 308 | isa = XCBuildConfiguration; 309 | buildSettings = { 310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 311 | CODE_SIGN_STYLE = Automatic; 312 | INFOPLIST_FILE = CloneTaobaoProductsDetails/Info.plist; 313 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 314 | PRODUCT_BUNDLE_IDENTIFIER = lizhen.CloneTaobaoProductsDetails; 315 | PRODUCT_NAME = "$(TARGET_NAME)"; 316 | TARGETED_DEVICE_FAMILY = "1,2"; 317 | }; 318 | name = Debug; 319 | }; 320 | 247D1C1620060A0C000EBFF2 /* Release */ = { 321 | isa = XCBuildConfiguration; 322 | buildSettings = { 323 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 324 | CODE_SIGN_STYLE = Automatic; 325 | INFOPLIST_FILE = CloneTaobaoProductsDetails/Info.plist; 326 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 327 | PRODUCT_BUNDLE_IDENTIFIER = lizhen.CloneTaobaoProductsDetails; 328 | PRODUCT_NAME = "$(TARGET_NAME)"; 329 | TARGETED_DEVICE_FAMILY = "1,2"; 330 | }; 331 | name = Release; 332 | }; 333 | /* End XCBuildConfiguration section */ 334 | 335 | /* Begin XCConfigurationList section */ 336 | 247D1BF920060A0C000EBFF2 /* Build configuration list for PBXProject "CloneTaobaoProductsDetails" */ = { 337 | isa = XCConfigurationList; 338 | buildConfigurations = ( 339 | 247D1C1220060A0C000EBFF2 /* Debug */, 340 | 247D1C1320060A0C000EBFF2 /* Release */, 341 | ); 342 | defaultConfigurationIsVisible = 0; 343 | defaultConfigurationName = Release; 344 | }; 345 | 247D1C1420060A0C000EBFF2 /* Build configuration list for PBXNativeTarget "CloneTaobaoProductsDetails" */ = { 346 | isa = XCConfigurationList; 347 | buildConfigurations = ( 348 | 247D1C1520060A0C000EBFF2 /* Debug */, 349 | 247D1C1620060A0C000EBFF2 /* Release */, 350 | ); 351 | defaultConfigurationIsVisible = 0; 352 | defaultConfigurationName = Release; 353 | }; 354 | /* End XCConfigurationList section */ 355 | }; 356 | rootObject = 247D1BF620060A0C000EBFF2 /* Project object */; 357 | } 358 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails.xcodeproj/project.xcworkspace/xcuserdata/Elvira.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinniangdeweidao/CloneTaobaoProductsDetails/4244c31711fb4b436a2c5bede8f00147b2e2073c/CloneTaobaoProductsDetails.xcodeproj/project.xcworkspace/xcuserdata/Elvira.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails.xcodeproj/xcuserdata/Elvira.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CloneTaobaoProductsDetails.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/0.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinniangdeweidao/CloneTaobaoProductsDetails/4244c31711fb4b436a2c5bede8f00147b2e2073c/CloneTaobaoProductsDetails/0.JPG -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinniangdeweidao/CloneTaobaoProductsDetails/4244c31711fb4b436a2c5bede8f00147b2e2073c/CloneTaobaoProductsDetails/1.JPG -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinniangdeweidao/CloneTaobaoProductsDetails/4244c31711fb4b436a2c5bede8f00147b2e2073c/CloneTaobaoProductsDetails/2.JPG -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/3.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinniangdeweidao/CloneTaobaoProductsDetails/4244c31711fb4b436a2c5bede8f00147b2e2073c/CloneTaobaoProductsDetails/3.JPG -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // CloneTaobaoProductsDetails 4 | // 5 | // Created by 李真 on 2018/1/10. 6 | // Copyright © 2018年 李真. 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 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // CloneTaobaoProductsDetails 4 | // 5 | // Created by 李真 on 2018/1/10. 6 | // Copyright © 2018年 李真. 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 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // 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. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // 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. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // 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. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/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 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/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 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/LZProductDetails.h: -------------------------------------------------------------------------------- 1 | // 2 | // LZProductDetails.h 3 | // 仿淘宝商品详情页 4 | // 5 | // Created by 李真 on 2018/1/9. 6 | // Copyright © 2018年 李真. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LZProductDetails : UIView 12 | @property (nonatomic, strong) void (^PlayVideoOptBlock)(BOOL isOK); 13 | @property (nonatomic, strong) void (^scrollOptBlock)(NSInteger index); 14 | @property (nonatomic,strong) UIScrollView * scrolV; 15 | @property (nonatomic,strong) UIImageView * videoCoverImgV;//视频封面 16 | @property (nonatomic,strong) UILabel * indexLab;//当前播放页数 17 | @property (nonatomic,strong) UIButton * playBtn;//播放按钮 18 | @property (nonatomic,strong) UIButton * ToVideoBtn;//切换到视频 19 | @property (nonatomic,strong) UIButton * ToPictureBtn;//切换到图片 20 | @property (nonatomic,copy) NSArray * productDetailsArr;//包含图片或视频URL的数组 21 | - (void)updateUIWithImageAndVideoArray:(NSArray *)detailsArr; 22 | @end 23 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/LZProductDetails.m: -------------------------------------------------------------------------------- 1 | // 2 | // LZProductDetails.m 3 | // 仿淘宝商品详情页 4 | // 5 | // Created by 李真 on 2018/1/9. 6 | // Copyright © 2018年 李真. All rights reserved. 7 | // 8 | 9 | #import "LZProductDetails.h" 10 | 11 | @implementation LZProductDetails 12 | - (NSArray *)productDetailsArr{ 13 | if (!_productDetailsArr) { 14 | _productDetailsArr = [NSArray array]; 15 | 16 | } 17 | return _productDetailsArr; 18 | } 19 | - (UIButton *)playBtn{ 20 | if (!_playBtn) { 21 | _playBtn = [[UIButton alloc]init]; 22 | _playBtn.imageView.contentMode = UIViewContentModeScaleAspectFit; 23 | [_playBtn setImage:[UIImage imageNamed:@"play"] forState:UIControlStateNormal]; 24 | } 25 | return _playBtn; 26 | } 27 | - (UILabel *)indexLab{ 28 | if (!_indexLab) { 29 | _indexLab = [[UILabel alloc]init]; 30 | _indexLab.textColor = [UIColor whiteColor]; 31 | _indexLab.backgroundColor = [[UIColor blackColor]colorWithAlphaComponent:0.3]; 32 | _indexLab.font = [UIFont systemFontOfSize:11]; 33 | _indexLab.textAlignment = 1; 34 | _indexLab.layer.cornerRadius = 13; 35 | _indexLab.layer.masksToBounds = YES; 36 | } 37 | return _indexLab; 38 | } 39 | - (UIButton *)ToVideoBtn{ 40 | if (!_ToVideoBtn) { 41 | _ToVideoBtn = [[UIButton alloc]init]; 42 | [_ToVideoBtn setTitle:@"视频" forState:UIControlStateNormal]; 43 | [_ToVideoBtn setTitle:@"视频" forState:UIControlStateSelected]; 44 | [_ToVideoBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected]; 45 | [_ToVideoBtn setBackgroundColor:[UIColor orangeColor]]; 46 | _ToVideoBtn.titleLabel.font = [UIFont systemFontOfSize:13]; 47 | [_ToVideoBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; 48 | _ToVideoBtn.layer.cornerRadius = 13; 49 | _ToVideoBtn.layer.masksToBounds = YES; 50 | } 51 | return _ToVideoBtn; 52 | } 53 | - (UIButton *)ToPictureBtn{ 54 | if (!_ToPictureBtn) { 55 | _ToPictureBtn = [[UIButton alloc]init]; 56 | [_ToPictureBtn setTitle:@"图片" forState:UIControlStateNormal]; 57 | [_ToPictureBtn setTitle:@"图片" forState:UIControlStateSelected]; 58 | [_ToPictureBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; 59 | [_ToPictureBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected]; 60 | _ToPictureBtn.titleLabel.font = [UIFont systemFontOfSize:13]; 61 | _ToPictureBtn.backgroundColor = [[UIColor whiteColor]colorWithAlphaComponent:0.5]; 62 | _ToPictureBtn.layer.cornerRadius = 13; 63 | _ToPictureBtn.layer.masksToBounds = YES; 64 | } 65 | return _ToPictureBtn; 66 | } 67 | 68 | - (UIScrollView *)scrolV{ 69 | if (!_scrolV) { 70 | _scrolV = [[UIScrollView alloc]init]; 71 | _scrolV.pagingEnabled = YES; 72 | _scrolV.showsVerticalScrollIndicator = NO; 73 | _scrolV.showsHorizontalScrollIndicator = NO; 74 | } 75 | return _scrolV; 76 | } 77 | - (UIImageView *)videoCoverImgV{ 78 | if (!_videoCoverImgV) { 79 | _videoCoverImgV = [[UIImageView alloc]init]; 80 | _videoCoverImgV.contentMode = UIViewContentModeScaleAspectFill; 81 | _videoCoverImgV.userInteractionEnabled = YES; 82 | } 83 | return _videoCoverImgV; 84 | } 85 | - (void)updateUIWithImageAndVideoArray:(NSArray *)detailsArr{ 86 | self.productDetailsArr = detailsArr; 87 | self.scrolV.frame = CGRectMake(0, 0, self.frame.size.width, 300); 88 | self.scrolV.contentSize = CGSizeMake(detailsArr.count*self.frame.size.width, self.frame.size.height); 89 | self.scrolV.delegate = self; 90 | self.scrolV.contentOffset = CGPointMake(0, 0); 91 | [self addSubview:self.scrolV]; 92 | for (int i = 0; i < detailsArr.count; i ++) { 93 | 94 | if (i == 0) { 95 | self.videoCoverImgV.frame = CGRectMake(i*self.frame.size.width, 0, self.frame.size.width, self.frame.size.height); 96 | self.playBtn.frame = CGRectMake((self.frame.size.width - 60)/2.0, (self.frame.size.height - 60)/2.0, 60, 60); 97 | [self.playBtn addTarget:self action:@selector(playClick) forControlEvents:UIControlEventTouchUpInside]; 98 | [self.videoCoverImgV addSubview:self.playBtn]; 99 | self.videoCoverImgV.image = [UIImage imageNamed:[NSString stringWithFormat:@"%d.JPG",i]]; 100 | [self.scrolV addSubview:self.videoCoverImgV]; 101 | } 102 | else{ 103 | UIImageView * imgV = [[UIImageView alloc]initWithFrame:CGRectMake(i*self.frame.size.width, 0, self.frame.size.width, self.frame.size.height)]; 104 | imgV.contentMode = UIViewContentModeScaleAspectFill; 105 | imgV.image = [UIImage imageNamed:[NSString stringWithFormat:@"%d.JPG",i]]; 106 | [self.scrolV addSubview:imgV]; 107 | } 108 | 109 | } 110 | if (detailsArr.count > 1) { 111 | // 添加“视频”、“图片” 112 | self.indexLab.frame = CGRectMake(self.frame.size.width - 40 - 20, self.frame.size.height - 25 - 20, 40, 25); 113 | self.indexLab.text = [NSString stringWithFormat:@"%d/%d",1,(int)detailsArr.count - 1]; 114 | [self addSubview:self.indexLab]; 115 | self.indexLab.hidden = YES; 116 | self.ToVideoBtn.frame = CGRectMake(self.center.x - 60-10, self.frame.size.height - 25 - 20, 60, 25); 117 | [self addSubview:self.ToVideoBtn]; 118 | self.ToVideoBtn.selected = YES; 119 | self.ToPictureBtn.frame = CGRectMake(self.center.x + 10, self.frame.size.height - 25 - 20, 60, 25); 120 | [self addSubview:self.ToPictureBtn]; 121 | self.ToPictureBtn.selected = NO; 122 | self.ToVideoBtn.tag = 10; 123 | self.ToPictureBtn.tag = 11; 124 | [self.ToVideoBtn addTarget:self action:@selector(changeBtnClick:) forControlEvents:UIControlEventTouchUpInside]; 125 | [self.ToPictureBtn addTarget:self action:@selector(changeBtnClick:) forControlEvents:UIControlEventTouchUpInside]; 126 | } 127 | } 128 | - (void)changeBtnClick:(UIButton *)btn{ 129 | if (btn.tag == 10) { 130 | // 视频 131 | self.ToVideoBtn.selected = YES; 132 | self.ToPictureBtn.selected = NO; 133 | self.ToVideoBtn.backgroundColor = [UIColor orangeColor]; 134 | self.ToPictureBtn.backgroundColor = [[UIColor whiteColor]colorWithAlphaComponent:0.5]; 135 | NSLog(@"点击视频"); 136 | 137 | if ([self.scrolV.delegate respondsToSelector:@selector(scrollViewDidEndDecelerating:)]) { 138 | 139 | [self.scrolV setContentOffset:CGPointMake(0, 0) animated:NO]; 140 | [self scrollViewDidEndDecelerating:self.scrolV]; 141 | } 142 | 143 | } 144 | else{ 145 | // 图片 146 | self.ToVideoBtn.selected = NO; 147 | self.ToPictureBtn.selected = YES; 148 | 149 | self.ToVideoBtn.backgroundColor = [[UIColor whiteColor]colorWithAlphaComponent:0.5]; 150 | self.ToPictureBtn.backgroundColor = [UIColor orangeColor]; 151 | NSLog(@"点击图片"); 152 | if (self.scrolV.contentOffset.x < self.frame.size.width) { 153 | if ([self.scrolV.delegate respondsToSelector:@selector(scrollViewDidEndDecelerating:)]) { 154 | [self.scrolV setContentOffset:CGPointMake(self.frame.size.width, 0) animated:NO]; 155 | [self scrollViewDidEndDecelerating:self.scrolV]; 156 | } 157 | } 158 | 159 | } 160 | return; 161 | } 162 | #pragma mark - scrollView的代理方法 163 | - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ 164 | NSInteger index = scrollView.contentOffset.x/self.bounds.size.width; 165 | self.scrolV.contentOffset = CGPointMake(index*self.bounds.size.width, 0); 166 | if (self.scrolV.contentOffset.x < self.frame.size.width) { 167 | self.indexLab.hidden = YES; 168 | [self.scrolV setContentOffset:CGPointMake(0, 0) animated:NO]; 169 | 170 | } 171 | else{ 172 | self.indexLab.hidden = NO; 173 | self.scrolV.contentOffset = CGPointMake(scrollView.contentOffset.x/self.frame.size.width*self.frame.size.width, 0); 174 | } 175 | self.indexLab.text = [NSString stringWithFormat:@"%d/%d",(int)index,(int)self.productDetailsArr.count - 1]; 176 | if (self.scrollOptBlock) { 177 | self.scrollOptBlock(index); 178 | } 179 | } 180 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView{ 181 | if (self.scrolV.contentOffset.x < self.frame.size.width) { 182 | // 处理“视频”按钮 183 | self.ToVideoBtn.selected = YES; 184 | self.ToPictureBtn.selected = NO; 185 | self.ToVideoBtn.backgroundColor = [UIColor orangeColor]; 186 | self.ToPictureBtn.backgroundColor = [[UIColor whiteColor]colorWithAlphaComponent:0.5]; 187 | } 188 | else{ 189 | 190 | // 处理“图片”按钮 191 | self.ToVideoBtn.selected = NO; 192 | self.ToPictureBtn.selected = YES; 193 | self.ToVideoBtn.backgroundColor = [[UIColor whiteColor]colorWithAlphaComponent:0.5]; 194 | self.ToPictureBtn.backgroundColor = [UIColor orangeColor]; 195 | 196 | } 197 | 198 | } 199 | - (void)playClick{ 200 | if (self.PlayVideoOptBlock) { 201 | self.PlayVideoOptBlock(YES); 202 | } 203 | } 204 | @end 205 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // CloneTaobaoProductsDetails 4 | // 5 | // Created by 李真 on 2018/1/10. 6 | // Copyright © 2018年 李真. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // 仿淘宝商品详情页 4 | // 5 | // Created by 李真 on 2018/1/9. 6 | // Copyright © 2018年 李真. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "LZProductDetails.h" 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | self.view.backgroundColor = [UIColor yellowColor]; 20 | LZProductDetails * detailsV = [[LZProductDetails alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 300)]; 21 | [self.view addSubview:detailsV]; 22 | detailsV.scrollOptBlock = ^(NSInteger index) { 23 | NSLog(@"第%d页",(int)index); 24 | }; 25 | detailsV.PlayVideoOptBlock = ^(BOOL isOK) { 26 | NSLog(@"点击播放"); 27 | }; 28 | [detailsV updateUIWithImageAndVideoArray:@[@"djasj",@"klasljdklja",@"dwedjj",@"223424"]]; 29 | } 30 | 31 | 32 | - (void)didReceiveMemoryWarning { 33 | [super didReceiveMemoryWarning]; 34 | // Dispose of any resources that can be recreated. 35 | } 36 | 37 | 38 | @end 39 | 40 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CloneTaobaoProductsDetails 4 | // 5 | // Created by 李真 on 2018/1/10. 6 | // Copyright © 2018年 李真. 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 | -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/play@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinniangdeweidao/CloneTaobaoProductsDetails/4244c31711fb4b436a2c5bede8f00147b2e2073c/CloneTaobaoProductsDetails/play@2x.png -------------------------------------------------------------------------------- /CloneTaobaoProductsDetails/play@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xinniangdeweidao/CloneTaobaoProductsDetails/4244c31711fb4b436a2c5bede8f00147b2e2073c/CloneTaobaoProductsDetails/play@3x.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CloneTaobaoProductsDetails 2 | 仿淘宝商品详情页[带有视频和图片的轮播功能] 3 | --------------------------------------------------------------------------------