├── .DS_Store ├── .gitignore ├── CustomTabBarProduct.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── CustomTabBarProduct ├── .DS_Store ├── AWTabbar │ ├── .DS_Store │ ├── AWLineTabBarController.h │ └── AWLineTabBarController.m ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── tabbar_home.imageset │ │ ├── Contents.json │ │ ├── tabbar_home@2x.png │ │ └── tabbar_home@3x.png │ └── tabbar_homeSelect.imageset │ │ ├── Contents.json │ │ ├── tabbar_homeSelect@2x.png │ │ └── tabbar_homeSelect@3x.png ├── Base.lproj │ └── LaunchScreen.storyboard ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── CustomTabBarProductTests ├── CustomTabBarProductTests.m └── Info.plist ├── CustomTabBarProductUITests ├── CustomTabBarProductUITests.m └── Info.plist ├── README.md └── showPic.gif /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ioswei/CustomTabbar/728d5d579e15b2e7fefb28556735510191df7b9c/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | # Pods/ 38 | 39 | # Carthage 40 | # 41 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 42 | # Carthage/Checkouts 43 | 44 | Carthage/Build 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 52 | 53 | fastlane/report.xml 54 | fastlane/Preview.html 55 | fastlane/screenshots/**/*.png 56 | fastlane/test_output 57 | 58 | # Code Injection 59 | # 60 | # After new code Injection tools there's a generated folder /iOSInjectionProject 61 | # https://github.com/johnno1962/injectionforxcode 62 | 63 | iOSInjectionProject/ 64 | -------------------------------------------------------------------------------- /CustomTabBarProduct.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 4F639DF12272E94500776206 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F639DF02272E94500776206 /* AppDelegate.m */; }; 11 | 4F639DF42272E94500776206 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F639DF32272E94500776206 /* ViewController.m */; }; 12 | 4F639DF92272E94C00776206 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4F639DF82272E94C00776206 /* Assets.xcassets */; }; 13 | 4F639DFC2272E94C00776206 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4F639DFA2272E94C00776206 /* LaunchScreen.storyboard */; }; 14 | 4F639DFF2272E94C00776206 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F639DFE2272E94C00776206 /* main.m */; }; 15 | 4F639E092272E94C00776206 /* CustomTabBarProductTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F639E082272E94C00776206 /* CustomTabBarProductTests.m */; }; 16 | 4F639E142272E94C00776206 /* CustomTabBarProductUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F639E132272E94C00776206 /* CustomTabBarProductUITests.m */; }; 17 | 4F639E242272E9A300776206 /* AWLineTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F639E232272E9A300776206 /* AWLineTabBarController.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 4F639E052272E94C00776206 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 4F639DE42272E94500776206 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 4F639DEB2272E94500776206; 26 | remoteInfo = CustomTabBarProduct; 27 | }; 28 | 4F639E102272E94C00776206 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 4F639DE42272E94500776206 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 4F639DEB2272E94500776206; 33 | remoteInfo = CustomTabBarProduct; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 4F639DEC2272E94500776206 /* CustomTabBarProduct.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomTabBarProduct.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 4F639DEF2272E94500776206 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 40 | 4F639DF02272E94500776206 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 41 | 4F639DF22272E94500776206 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 42 | 4F639DF32272E94500776206 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 43 | 4F639DF82272E94C00776206 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 44 | 4F639DFB2272E94C00776206 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 45 | 4F639DFD2272E94C00776206 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 4F639DFE2272E94C00776206 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 47 | 4F639E042272E94C00776206 /* CustomTabBarProductTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CustomTabBarProductTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 4F639E082272E94C00776206 /* CustomTabBarProductTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CustomTabBarProductTests.m; sourceTree = ""; }; 49 | 4F639E0A2272E94C00776206 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | 4F639E0F2272E94C00776206 /* CustomTabBarProductUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CustomTabBarProductUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 4F639E132272E94C00776206 /* CustomTabBarProductUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CustomTabBarProductUITests.m; sourceTree = ""; }; 52 | 4F639E152272E94C00776206 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | 4F639E222272E9A300776206 /* AWLineTabBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AWLineTabBarController.h; sourceTree = ""; }; 54 | 4F639E232272E9A300776206 /* AWLineTabBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AWLineTabBarController.m; sourceTree = ""; }; 55 | /* End PBXFileReference section */ 56 | 57 | /* Begin PBXFrameworksBuildPhase section */ 58 | 4F639DE92272E94500776206 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | 4F639E012272E94C00776206 /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | 4F639E0C2272E94C00776206 /* Frameworks */ = { 73 | isa = PBXFrameworksBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | /* End PBXFrameworksBuildPhase section */ 80 | 81 | /* Begin PBXGroup section */ 82 | 4F639DE32272E94500776206 = { 83 | isa = PBXGroup; 84 | children = ( 85 | 4F639DEE2272E94500776206 /* CustomTabBarProduct */, 86 | 4F639E072272E94C00776206 /* CustomTabBarProductTests */, 87 | 4F639E122272E94C00776206 /* CustomTabBarProductUITests */, 88 | 4F639DED2272E94500776206 /* Products */, 89 | ); 90 | sourceTree = ""; 91 | }; 92 | 4F639DED2272E94500776206 /* Products */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 4F639DEC2272E94500776206 /* CustomTabBarProduct.app */, 96 | 4F639E042272E94C00776206 /* CustomTabBarProductTests.xctest */, 97 | 4F639E0F2272E94C00776206 /* CustomTabBarProductUITests.xctest */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 4F639DEE2272E94500776206 /* CustomTabBarProduct */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 4F639DEF2272E94500776206 /* AppDelegate.h */, 106 | 4F639DF02272E94500776206 /* AppDelegate.m */, 107 | 4F639DF22272E94500776206 /* ViewController.h */, 108 | 4F639DF32272E94500776206 /* ViewController.m */, 109 | 4F639E212272E9A300776206 /* AWTabbar */, 110 | 4F639DF82272E94C00776206 /* Assets.xcassets */, 111 | 4F639DFA2272E94C00776206 /* LaunchScreen.storyboard */, 112 | 4F639DFD2272E94C00776206 /* Info.plist */, 113 | 4F639DFE2272E94C00776206 /* main.m */, 114 | ); 115 | path = CustomTabBarProduct; 116 | sourceTree = ""; 117 | }; 118 | 4F639E072272E94C00776206 /* CustomTabBarProductTests */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 4F639E082272E94C00776206 /* CustomTabBarProductTests.m */, 122 | 4F639E0A2272E94C00776206 /* Info.plist */, 123 | ); 124 | path = CustomTabBarProductTests; 125 | sourceTree = ""; 126 | }; 127 | 4F639E122272E94C00776206 /* CustomTabBarProductUITests */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 4F639E132272E94C00776206 /* CustomTabBarProductUITests.m */, 131 | 4F639E152272E94C00776206 /* Info.plist */, 132 | ); 133 | path = CustomTabBarProductUITests; 134 | sourceTree = ""; 135 | }; 136 | 4F639E212272E9A300776206 /* AWTabbar */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 4F639E222272E9A300776206 /* AWLineTabBarController.h */, 140 | 4F639E232272E9A300776206 /* AWLineTabBarController.m */, 141 | ); 142 | path = AWTabbar; 143 | sourceTree = ""; 144 | }; 145 | /* End PBXGroup section */ 146 | 147 | /* Begin PBXNativeTarget section */ 148 | 4F639DEB2272E94500776206 /* CustomTabBarProduct */ = { 149 | isa = PBXNativeTarget; 150 | buildConfigurationList = 4F639E182272E94C00776206 /* Build configuration list for PBXNativeTarget "CustomTabBarProduct" */; 151 | buildPhases = ( 152 | 4F639DE82272E94500776206 /* Sources */, 153 | 4F639DE92272E94500776206 /* Frameworks */, 154 | 4F639DEA2272E94500776206 /* Resources */, 155 | ); 156 | buildRules = ( 157 | ); 158 | dependencies = ( 159 | ); 160 | name = CustomTabBarProduct; 161 | productName = CustomTabBarProduct; 162 | productReference = 4F639DEC2272E94500776206 /* CustomTabBarProduct.app */; 163 | productType = "com.apple.product-type.application"; 164 | }; 165 | 4F639E032272E94C00776206 /* CustomTabBarProductTests */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 4F639E1B2272E94C00776206 /* Build configuration list for PBXNativeTarget "CustomTabBarProductTests" */; 168 | buildPhases = ( 169 | 4F639E002272E94C00776206 /* Sources */, 170 | 4F639E012272E94C00776206 /* Frameworks */, 171 | 4F639E022272E94C00776206 /* Resources */, 172 | ); 173 | buildRules = ( 174 | ); 175 | dependencies = ( 176 | 4F639E062272E94C00776206 /* PBXTargetDependency */, 177 | ); 178 | name = CustomTabBarProductTests; 179 | productName = CustomTabBarProductTests; 180 | productReference = 4F639E042272E94C00776206 /* CustomTabBarProductTests.xctest */; 181 | productType = "com.apple.product-type.bundle.unit-test"; 182 | }; 183 | 4F639E0E2272E94C00776206 /* CustomTabBarProductUITests */ = { 184 | isa = PBXNativeTarget; 185 | buildConfigurationList = 4F639E1E2272E94C00776206 /* Build configuration list for PBXNativeTarget "CustomTabBarProductUITests" */; 186 | buildPhases = ( 187 | 4F639E0B2272E94C00776206 /* Sources */, 188 | 4F639E0C2272E94C00776206 /* Frameworks */, 189 | 4F639E0D2272E94C00776206 /* Resources */, 190 | ); 191 | buildRules = ( 192 | ); 193 | dependencies = ( 194 | 4F639E112272E94C00776206 /* PBXTargetDependency */, 195 | ); 196 | name = CustomTabBarProductUITests; 197 | productName = CustomTabBarProductUITests; 198 | productReference = 4F639E0F2272E94C00776206 /* CustomTabBarProductUITests.xctest */; 199 | productType = "com.apple.product-type.bundle.ui-testing"; 200 | }; 201 | /* End PBXNativeTarget section */ 202 | 203 | /* Begin PBXProject section */ 204 | 4F639DE42272E94500776206 /* Project object */ = { 205 | isa = PBXProject; 206 | attributes = { 207 | LastUpgradeCheck = 1020; 208 | ORGANIZATIONNAME = "iOS_阿玮"; 209 | TargetAttributes = { 210 | 4F639DEB2272E94500776206 = { 211 | CreatedOnToolsVersion = 10.2; 212 | }; 213 | 4F639E032272E94C00776206 = { 214 | CreatedOnToolsVersion = 10.2; 215 | TestTargetID = 4F639DEB2272E94500776206; 216 | }; 217 | 4F639E0E2272E94C00776206 = { 218 | CreatedOnToolsVersion = 10.2; 219 | TestTargetID = 4F639DEB2272E94500776206; 220 | }; 221 | }; 222 | }; 223 | buildConfigurationList = 4F639DE72272E94500776206 /* Build configuration list for PBXProject "CustomTabBarProduct" */; 224 | compatibilityVersion = "Xcode 9.3"; 225 | developmentRegion = en; 226 | hasScannedForEncodings = 0; 227 | knownRegions = ( 228 | en, 229 | Base, 230 | ); 231 | mainGroup = 4F639DE32272E94500776206; 232 | productRefGroup = 4F639DED2272E94500776206 /* Products */; 233 | projectDirPath = ""; 234 | projectRoot = ""; 235 | targets = ( 236 | 4F639DEB2272E94500776206 /* CustomTabBarProduct */, 237 | 4F639E032272E94C00776206 /* CustomTabBarProductTests */, 238 | 4F639E0E2272E94C00776206 /* CustomTabBarProductUITests */, 239 | ); 240 | }; 241 | /* End PBXProject section */ 242 | 243 | /* Begin PBXResourcesBuildPhase section */ 244 | 4F639DEA2272E94500776206 /* Resources */ = { 245 | isa = PBXResourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 4F639DFC2272E94C00776206 /* LaunchScreen.storyboard in Resources */, 249 | 4F639DF92272E94C00776206 /* Assets.xcassets in Resources */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | 4F639E022272E94C00776206 /* Resources */ = { 254 | isa = PBXResourcesBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | }; 260 | 4F639E0D2272E94C00776206 /* Resources */ = { 261 | isa = PBXResourcesBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | /* End PBXResourcesBuildPhase section */ 268 | 269 | /* Begin PBXSourcesBuildPhase section */ 270 | 4F639DE82272E94500776206 /* Sources */ = { 271 | isa = PBXSourcesBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | 4F639DF42272E94500776206 /* ViewController.m in Sources */, 275 | 4F639DFF2272E94C00776206 /* main.m in Sources */, 276 | 4F639DF12272E94500776206 /* AppDelegate.m in Sources */, 277 | 4F639E242272E9A300776206 /* AWLineTabBarController.m in Sources */, 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | }; 281 | 4F639E002272E94C00776206 /* Sources */ = { 282 | isa = PBXSourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | 4F639E092272E94C00776206 /* CustomTabBarProductTests.m in Sources */, 286 | ); 287 | runOnlyForDeploymentPostprocessing = 0; 288 | }; 289 | 4F639E0B2272E94C00776206 /* Sources */ = { 290 | isa = PBXSourcesBuildPhase; 291 | buildActionMask = 2147483647; 292 | files = ( 293 | 4F639E142272E94C00776206 /* CustomTabBarProductUITests.m in Sources */, 294 | ); 295 | runOnlyForDeploymentPostprocessing = 0; 296 | }; 297 | /* End PBXSourcesBuildPhase section */ 298 | 299 | /* Begin PBXTargetDependency section */ 300 | 4F639E062272E94C00776206 /* PBXTargetDependency */ = { 301 | isa = PBXTargetDependency; 302 | target = 4F639DEB2272E94500776206 /* CustomTabBarProduct */; 303 | targetProxy = 4F639E052272E94C00776206 /* PBXContainerItemProxy */; 304 | }; 305 | 4F639E112272E94C00776206 /* PBXTargetDependency */ = { 306 | isa = PBXTargetDependency; 307 | target = 4F639DEB2272E94500776206 /* CustomTabBarProduct */; 308 | targetProxy = 4F639E102272E94C00776206 /* PBXContainerItemProxy */; 309 | }; 310 | /* End PBXTargetDependency section */ 311 | 312 | /* Begin PBXVariantGroup section */ 313 | 4F639DFA2272E94C00776206 /* LaunchScreen.storyboard */ = { 314 | isa = PBXVariantGroup; 315 | children = ( 316 | 4F639DFB2272E94C00776206 /* Base */, 317 | ); 318 | name = LaunchScreen.storyboard; 319 | sourceTree = ""; 320 | }; 321 | /* End PBXVariantGroup section */ 322 | 323 | /* Begin XCBuildConfiguration section */ 324 | 4F639E162272E94C00776206 /* Debug */ = { 325 | isa = XCBuildConfiguration; 326 | buildSettings = { 327 | ALWAYS_SEARCH_USER_PATHS = NO; 328 | CLANG_ANALYZER_NONNULL = YES; 329 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 330 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 331 | CLANG_CXX_LIBRARY = "libc++"; 332 | CLANG_ENABLE_MODULES = YES; 333 | CLANG_ENABLE_OBJC_ARC = YES; 334 | CLANG_ENABLE_OBJC_WEAK = YES; 335 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 336 | CLANG_WARN_BOOL_CONVERSION = YES; 337 | CLANG_WARN_COMMA = YES; 338 | CLANG_WARN_CONSTANT_CONVERSION = YES; 339 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 340 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 341 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 342 | CLANG_WARN_EMPTY_BODY = YES; 343 | CLANG_WARN_ENUM_CONVERSION = YES; 344 | CLANG_WARN_INFINITE_RECURSION = YES; 345 | CLANG_WARN_INT_CONVERSION = YES; 346 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 347 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 348 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 349 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 350 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 351 | CLANG_WARN_STRICT_PROTOTYPES = YES; 352 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 353 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 354 | CLANG_WARN_UNREACHABLE_CODE = YES; 355 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 356 | CODE_SIGN_IDENTITY = "iPhone Developer"; 357 | COPY_PHASE_STRIP = NO; 358 | DEBUG_INFORMATION_FORMAT = dwarf; 359 | ENABLE_STRICT_OBJC_MSGSEND = YES; 360 | ENABLE_TESTABILITY = YES; 361 | GCC_C_LANGUAGE_STANDARD = gnu11; 362 | GCC_DYNAMIC_NO_PIC = NO; 363 | GCC_NO_COMMON_BLOCKS = YES; 364 | GCC_OPTIMIZATION_LEVEL = 0; 365 | GCC_PREPROCESSOR_DEFINITIONS = ( 366 | "DEBUG=1", 367 | "$(inherited)", 368 | ); 369 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 370 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 371 | GCC_WARN_UNDECLARED_SELECTOR = YES; 372 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 373 | GCC_WARN_UNUSED_FUNCTION = YES; 374 | GCC_WARN_UNUSED_VARIABLE = YES; 375 | IPHONEOS_DEPLOYMENT_TARGET = 12.2; 376 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 377 | MTL_FAST_MATH = YES; 378 | ONLY_ACTIVE_ARCH = YES; 379 | SDKROOT = iphoneos; 380 | }; 381 | name = Debug; 382 | }; 383 | 4F639E172272E94C00776206 /* Release */ = { 384 | isa = XCBuildConfiguration; 385 | buildSettings = { 386 | ALWAYS_SEARCH_USER_PATHS = NO; 387 | CLANG_ANALYZER_NONNULL = YES; 388 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 389 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 390 | CLANG_CXX_LIBRARY = "libc++"; 391 | CLANG_ENABLE_MODULES = YES; 392 | CLANG_ENABLE_OBJC_ARC = YES; 393 | CLANG_ENABLE_OBJC_WEAK = YES; 394 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 395 | CLANG_WARN_BOOL_CONVERSION = YES; 396 | CLANG_WARN_COMMA = YES; 397 | CLANG_WARN_CONSTANT_CONVERSION = YES; 398 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 399 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 400 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 401 | CLANG_WARN_EMPTY_BODY = YES; 402 | CLANG_WARN_ENUM_CONVERSION = YES; 403 | CLANG_WARN_INFINITE_RECURSION = YES; 404 | CLANG_WARN_INT_CONVERSION = YES; 405 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 406 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 407 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 408 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 409 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 410 | CLANG_WARN_STRICT_PROTOTYPES = YES; 411 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 412 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 413 | CLANG_WARN_UNREACHABLE_CODE = YES; 414 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 415 | CODE_SIGN_IDENTITY = "iPhone Developer"; 416 | COPY_PHASE_STRIP = NO; 417 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 418 | ENABLE_NS_ASSERTIONS = NO; 419 | ENABLE_STRICT_OBJC_MSGSEND = YES; 420 | GCC_C_LANGUAGE_STANDARD = gnu11; 421 | GCC_NO_COMMON_BLOCKS = YES; 422 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 423 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 424 | GCC_WARN_UNDECLARED_SELECTOR = YES; 425 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 426 | GCC_WARN_UNUSED_FUNCTION = YES; 427 | GCC_WARN_UNUSED_VARIABLE = YES; 428 | IPHONEOS_DEPLOYMENT_TARGET = 12.2; 429 | MTL_ENABLE_DEBUG_INFO = NO; 430 | MTL_FAST_MATH = YES; 431 | SDKROOT = iphoneos; 432 | VALIDATE_PRODUCT = YES; 433 | }; 434 | name = Release; 435 | }; 436 | 4F639E192272E94C00776206 /* Debug */ = { 437 | isa = XCBuildConfiguration; 438 | buildSettings = { 439 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 440 | CODE_SIGN_STYLE = Automatic; 441 | DEVELOPMENT_TEAM = 922US7RP5Z; 442 | INFOPLIST_FILE = CustomTabBarProduct/Info.plist; 443 | LD_RUNPATH_SEARCH_PATHS = ( 444 | "$(inherited)", 445 | "@executable_path/Frameworks", 446 | ); 447 | PRODUCT_BUNDLE_IDENTIFIER = RuiMeng.CustomTabBarProduct; 448 | PRODUCT_NAME = "$(TARGET_NAME)"; 449 | TARGETED_DEVICE_FAMILY = "1,2"; 450 | }; 451 | name = Debug; 452 | }; 453 | 4F639E1A2272E94C00776206 /* Release */ = { 454 | isa = XCBuildConfiguration; 455 | buildSettings = { 456 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 457 | CODE_SIGN_STYLE = Automatic; 458 | DEVELOPMENT_TEAM = 922US7RP5Z; 459 | INFOPLIST_FILE = CustomTabBarProduct/Info.plist; 460 | LD_RUNPATH_SEARCH_PATHS = ( 461 | "$(inherited)", 462 | "@executable_path/Frameworks", 463 | ); 464 | PRODUCT_BUNDLE_IDENTIFIER = RuiMeng.CustomTabBarProduct; 465 | PRODUCT_NAME = "$(TARGET_NAME)"; 466 | TARGETED_DEVICE_FAMILY = "1,2"; 467 | }; 468 | name = Release; 469 | }; 470 | 4F639E1C2272E94C00776206 /* Debug */ = { 471 | isa = XCBuildConfiguration; 472 | buildSettings = { 473 | BUNDLE_LOADER = "$(TEST_HOST)"; 474 | CODE_SIGN_STYLE = Automatic; 475 | DEVELOPMENT_TEAM = 922US7RP5Z; 476 | INFOPLIST_FILE = CustomTabBarProductTests/Info.plist; 477 | LD_RUNPATH_SEARCH_PATHS = ( 478 | "$(inherited)", 479 | "@executable_path/Frameworks", 480 | "@loader_path/Frameworks", 481 | ); 482 | PRODUCT_BUNDLE_IDENTIFIER = RuiMeng.CustomTabBarProductTests; 483 | PRODUCT_NAME = "$(TARGET_NAME)"; 484 | TARGETED_DEVICE_FAMILY = "1,2"; 485 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CustomTabBarProduct.app/CustomTabBarProduct"; 486 | }; 487 | name = Debug; 488 | }; 489 | 4F639E1D2272E94C00776206 /* Release */ = { 490 | isa = XCBuildConfiguration; 491 | buildSettings = { 492 | BUNDLE_LOADER = "$(TEST_HOST)"; 493 | CODE_SIGN_STYLE = Automatic; 494 | DEVELOPMENT_TEAM = 922US7RP5Z; 495 | INFOPLIST_FILE = CustomTabBarProductTests/Info.plist; 496 | LD_RUNPATH_SEARCH_PATHS = ( 497 | "$(inherited)", 498 | "@executable_path/Frameworks", 499 | "@loader_path/Frameworks", 500 | ); 501 | PRODUCT_BUNDLE_IDENTIFIER = RuiMeng.CustomTabBarProductTests; 502 | PRODUCT_NAME = "$(TARGET_NAME)"; 503 | TARGETED_DEVICE_FAMILY = "1,2"; 504 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CustomTabBarProduct.app/CustomTabBarProduct"; 505 | }; 506 | name = Release; 507 | }; 508 | 4F639E1F2272E94C00776206 /* Debug */ = { 509 | isa = XCBuildConfiguration; 510 | buildSettings = { 511 | CODE_SIGN_STYLE = Automatic; 512 | DEVELOPMENT_TEAM = 922US7RP5Z; 513 | INFOPLIST_FILE = CustomTabBarProductUITests/Info.plist; 514 | LD_RUNPATH_SEARCH_PATHS = ( 515 | "$(inherited)", 516 | "@executable_path/Frameworks", 517 | "@loader_path/Frameworks", 518 | ); 519 | PRODUCT_BUNDLE_IDENTIFIER = RuiMeng.CustomTabBarProductUITests; 520 | PRODUCT_NAME = "$(TARGET_NAME)"; 521 | TARGETED_DEVICE_FAMILY = "1,2"; 522 | TEST_TARGET_NAME = CustomTabBarProduct; 523 | }; 524 | name = Debug; 525 | }; 526 | 4F639E202272E94C00776206 /* Release */ = { 527 | isa = XCBuildConfiguration; 528 | buildSettings = { 529 | CODE_SIGN_STYLE = Automatic; 530 | DEVELOPMENT_TEAM = 922US7RP5Z; 531 | INFOPLIST_FILE = CustomTabBarProductUITests/Info.plist; 532 | LD_RUNPATH_SEARCH_PATHS = ( 533 | "$(inherited)", 534 | "@executable_path/Frameworks", 535 | "@loader_path/Frameworks", 536 | ); 537 | PRODUCT_BUNDLE_IDENTIFIER = RuiMeng.CustomTabBarProductUITests; 538 | PRODUCT_NAME = "$(TARGET_NAME)"; 539 | TARGETED_DEVICE_FAMILY = "1,2"; 540 | TEST_TARGET_NAME = CustomTabBarProduct; 541 | }; 542 | name = Release; 543 | }; 544 | /* End XCBuildConfiguration section */ 545 | 546 | /* Begin XCConfigurationList section */ 547 | 4F639DE72272E94500776206 /* Build configuration list for PBXProject "CustomTabBarProduct" */ = { 548 | isa = XCConfigurationList; 549 | buildConfigurations = ( 550 | 4F639E162272E94C00776206 /* Debug */, 551 | 4F639E172272E94C00776206 /* Release */, 552 | ); 553 | defaultConfigurationIsVisible = 0; 554 | defaultConfigurationName = Release; 555 | }; 556 | 4F639E182272E94C00776206 /* Build configuration list for PBXNativeTarget "CustomTabBarProduct" */ = { 557 | isa = XCConfigurationList; 558 | buildConfigurations = ( 559 | 4F639E192272E94C00776206 /* Debug */, 560 | 4F639E1A2272E94C00776206 /* Release */, 561 | ); 562 | defaultConfigurationIsVisible = 0; 563 | defaultConfigurationName = Release; 564 | }; 565 | 4F639E1B2272E94C00776206 /* Build configuration list for PBXNativeTarget "CustomTabBarProductTests" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 4F639E1C2272E94C00776206 /* Debug */, 569 | 4F639E1D2272E94C00776206 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 4F639E1E2272E94C00776206 /* Build configuration list for PBXNativeTarget "CustomTabBarProductUITests" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 4F639E1F2272E94C00776206 /* Debug */, 578 | 4F639E202272E94C00776206 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | /* End XCConfigurationList section */ 584 | }; 585 | rootObject = 4F639DE42272E94500776206 /* Project object */; 586 | } 587 | -------------------------------------------------------------------------------- /CustomTabBarProduct.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CustomTabBarProduct.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /CustomTabBarProduct/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ioswei/CustomTabbar/728d5d579e15b2e7fefb28556735510191df7b9c/CustomTabBarProduct/.DS_Store -------------------------------------------------------------------------------- /CustomTabBarProduct/AWTabbar/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ioswei/CustomTabbar/728d5d579e15b2e7fefb28556735510191df7b9c/CustomTabBarProduct/AWTabbar/.DS_Store -------------------------------------------------------------------------------- /CustomTabBarProduct/AWTabbar/AWLineTabBarController.h: -------------------------------------------------------------------------------- 1 | // 2 | // AWLineTabBarController.h 3 | // PeoitXLoanProject 4 | // 5 | // Created by iMac-1 on 2019/4/26. 6 | // Copyright © 2019 iOS_阿玮. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface AWLineTabBarController : UITabBarController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /CustomTabBarProduct/AWTabbar/AWLineTabBarController.m: -------------------------------------------------------------------------------- 1 | // 2 | // AWLineTabBarController.m 3 | // PeoitXLoanProject 4 | // 5 | // Created by iMac-1 on 2019/4/26. 6 | // Copyright © 2019 iOS_阿玮. All rights reserved. 7 | // 8 | 9 | #import "AWLineTabBarController.h" 10 | 11 | #import "ViewController.h" 12 | 13 | #define BTN_HEIGHT 50 14 | #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width) 15 | #define BTNTAG 10000 16 | 17 | @interface AWLineTabBarController () 18 | { 19 | UIButton *_button; 20 | UIButton *_butTitle; 21 | UIView *_lineView; 22 | } 23 | @end 24 | 25 | @implementation AWLineTabBarController 26 | 27 | - (void)viewDidLoad { 28 | [super viewDidLoad]; 29 | // Do any additional setup after loading the view. 30 | 31 | self.view.backgroundColor = [UIColor whiteColor]; 32 | 33 | [self initControllers]; 34 | 35 | [self creatTabbar]; 36 | 37 | //去除顶部的分割线 -- 根据需求 自定注释 38 | // [[UITabBar appearance] setShadowImage:[UIImage new]]; 39 | // [[UITabBar appearance] setBackgroundImage:[[UIImage alloc]init]]; 40 | 41 | } 42 | 43 | #pragma mark - 如果想添加控制器到tabbar里面在这里面实例化就行 44 | - (void)initControllers 45 | { 46 | #pragma mark ————————————————主页 47 | ViewController *homeVC = [[ViewController alloc]init]; 48 | UINavigationController *navVC1 = [[UINavigationController alloc]initWithRootViewController:homeVC]; 49 | [navVC1 setNavigationBarHidden:YES]; 50 | 51 | #pragma mark ————————————————我的 52 | ViewController *mineVC = [[ViewController alloc]init]; 53 | UINavigationController *navVC2 = [[UINavigationController alloc]initWithRootViewController:mineVC]; 54 | [navVC2 setNavigationBarHidden:YES]; 55 | 56 | ViewController *uerVC = [[ViewController alloc]init]; 57 | UINavigationController *navVC3 = [[UINavigationController alloc] initWithRootViewController:uerVC]; 58 | [navVC3 setNavigationBarHidden:YES]; 59 | 60 | ViewController *uer1VC = [[ViewController alloc]init]; 61 | UINavigationController *navVC4 = [[UINavigationController alloc] initWithRootViewController:uer1VC]; 62 | [navVC4 setNavigationBarHidden:YES]; 63 | 64 | NSArray *ctrlArr = [NSArray arrayWithObjects:navVC1,navVC2,navVC3,navVC4,nil]; 65 | 66 | self.viewControllers=ctrlArr; 67 | //照着上面添加控制球就行了 68 | 69 | 70 | } 71 | 72 | - (void)creatTabbar{ 73 | 74 | NSArray *titleArrs = @[@"事件",@"程序猿",@"程序媛",@"工程师"]; 75 | // 只需要该图片名字就行 76 | NSArray * normImage = @[@"tabbar_home",@"tabbar_home",@"tabbar_home",@"tabbar_home"]; 77 | // 只需修改选中图片的名字 78 | NSArray * selectImage = @[@"tabbar_homeSelect",@"tabbar_homeSelect",@"tabbar_homeSelect",@"tabbar_homeSelect"]; 79 | UIView *bgView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, self.tabBar.frame.size.height)]; 80 | bgView.backgroundColor = [UIColor clearColor]; 81 | bgView.userInteractionEnabled = YES; 82 | 83 | float btn_X = 0; 84 | float btn_width = SCREEN_WIDTH/self.viewControllers.count; 85 | if ([self getIsIpad]) { 86 | btn_X = 100; 87 | btn_width = (SCREEN_WIDTH-btn_X*2)/self.viewControllers.count; 88 | } 89 | 90 | for(int i = 0;i 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /CustomTabBarProduct/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // CustomTabBarProduct 4 | // 5 | // Created by iMac-1 on 2019/4/26. 6 | // Copyright © 2019 iOS_阿玮. All rights reserved. 7 | // 8 | // QQ:71449265 QQ技术交流群:637387838 9 | // 10 | #import "AppDelegate.h" 11 | #import "AWLineTabBarController.h" 12 | 13 | @interface AppDelegate () 14 | 15 | @end 16 | 17 | @implementation AppDelegate 18 | 19 | 20 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 21 | // Override point for customization after application launch. 22 | 23 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 24 | 25 | self.window.rootViewController = [[AWLineTabBarController alloc] init]; 26 | 27 | [self.window makeKeyAndVisible]; 28 | 29 | return YES; 30 | } 31 | 32 | 33 | - (void)applicationWillResignActive:(UIApplication *)application { 34 | // 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. 35 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 36 | } 37 | 38 | 39 | - (void)applicationDidEnterBackground:(UIApplication *)application { 40 | // 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. 41 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 42 | } 43 | 44 | 45 | - (void)applicationWillEnterForeground:(UIApplication *)application { 46 | // 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. 47 | } 48 | 49 | 50 | - (void)applicationDidBecomeActive:(UIApplication *)application { 51 | // 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. 52 | } 53 | 54 | 55 | - (void)applicationWillTerminate:(UIApplication *)application { 56 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 57 | } 58 | 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /CustomTabBarProduct/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 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /CustomTabBarProduct/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /CustomTabBarProduct/Assets.xcassets/tabbar_home.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_home@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_home@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabBarProduct/Assets.xcassets/tabbar_home.imageset/tabbar_home@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ioswei/CustomTabbar/728d5d579e15b2e7fefb28556735510191df7b9c/CustomTabBarProduct/Assets.xcassets/tabbar_home.imageset/tabbar_home@2x.png -------------------------------------------------------------------------------- /CustomTabBarProduct/Assets.xcassets/tabbar_home.imageset/tabbar_home@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ioswei/CustomTabbar/728d5d579e15b2e7fefb28556735510191df7b9c/CustomTabBarProduct/Assets.xcassets/tabbar_home.imageset/tabbar_home@3x.png -------------------------------------------------------------------------------- /CustomTabBarProduct/Assets.xcassets/tabbar_homeSelect.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_homeSelect@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_homeSelect@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabBarProduct/Assets.xcassets/tabbar_homeSelect.imageset/tabbar_homeSelect@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ioswei/CustomTabbar/728d5d579e15b2e7fefb28556735510191df7b9c/CustomTabBarProduct/Assets.xcassets/tabbar_homeSelect.imageset/tabbar_homeSelect@2x.png -------------------------------------------------------------------------------- /CustomTabBarProduct/Assets.xcassets/tabbar_homeSelect.imageset/tabbar_homeSelect@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ioswei/CustomTabbar/728d5d579e15b2e7fefb28556735510191df7b9c/CustomTabBarProduct/Assets.xcassets/tabbar_homeSelect.imageset/tabbar_homeSelect@3x.png -------------------------------------------------------------------------------- /CustomTabBarProduct/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 | -------------------------------------------------------------------------------- /CustomTabBarProduct/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 | UIRequiredDeviceCapabilities 26 | 27 | armv7 28 | 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /CustomTabBarProduct/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // CustomTabBarProduct 4 | // 5 | // Created by iMac-1 on 2019/4/26. 6 | // Copyright © 2019 iOS_阿玮. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /CustomTabBarProduct/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // CustomTabBarProduct 4 | // 5 | // Created by iMac-1 on 2019/4/26. 6 | // Copyright © 2019 iOS_阿玮. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | self.view.backgroundColor = [UIColor colorWithRed:arc4random()%255/255.0 green:arc4random()%255/255.0 blue:arc4random()%255/255.0 alpha:arc4random()%255/255.0]; 21 | } 22 | 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /CustomTabBarProduct/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CustomTabBarProduct 4 | // 5 | // Created by iMac-1 on 2019/4/26. 6 | // Copyright © 2019 iOS_阿玮. 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 | -------------------------------------------------------------------------------- /CustomTabBarProductTests/CustomTabBarProductTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // CustomTabBarProductTests.m 3 | // CustomTabBarProductTests 4 | // 5 | // Created by iMac-1 on 2019/4/26. 6 | // Copyright © 2019 iOS_阿玮. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CustomTabBarProductTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation CustomTabBarProductTests 16 | 17 | - (void)setUp { 18 | // Put setup code here. This method is called before the invocation of each test method in the class. 19 | } 20 | 21 | - (void)tearDown { 22 | // Put teardown code here. This method is called after the invocation of each test method in the class. 23 | } 24 | 25 | - (void)testExample { 26 | // This is an example of a functional test case. 27 | // Use XCTAssert and related functions to verify your tests produce the correct results. 28 | } 29 | 30 | - (void)testPerformanceExample { 31 | // This is an example of a performance test case. 32 | [self measureBlock:^{ 33 | // Put the code you want to measure the time of here. 34 | }]; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /CustomTabBarProductTests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /CustomTabBarProductUITests/CustomTabBarProductUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // CustomTabBarProductUITests.m 3 | // CustomTabBarProductUITests 4 | // 5 | // Created by iMac-1 on 2019/4/26. 6 | // Copyright © 2019 iOS_阿玮. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CustomTabBarProductUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation CustomTabBarProductUITests 16 | 17 | - (void)setUp { 18 | // Put setup code here. This method is called before the invocation of each test method in the class. 19 | 20 | // In UI tests it is usually best to stop immediately when a failure occurs. 21 | self.continueAfterFailure = NO; 22 | 23 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 24 | [[[XCUIApplication alloc] init] launch]; 25 | 26 | // 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. 27 | } 28 | 29 | - (void)tearDown { 30 | // Put teardown code here. This method is called after the invocation of each test method in the class. 31 | } 32 | 33 | - (void)testExample { 34 | // Use recording to get started writing UI tests. 35 | // Use XCTAssert and related functions to verify your tests produce the correct results. 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /CustomTabBarProductUITests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CustomTabbar 2 | 自定义底部导航--已适配iPad可以自行修改 3 | 技术qq群:637387838 4 | 5 | 效果图展示: 6 | 7 | ![示例](https://github.com/ioswei/CustomTabbar/blob/master/showPic.gif) 8 | -------------------------------------------------------------------------------- /showPic.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ioswei/CustomTabbar/728d5d579e15b2e7fefb28556735510191df7b9c/showPic.gif --------------------------------------------------------------------------------