├── .gitignore ├── CustomTabbarViewController.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcuserdata │ │ └── duan.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── duan.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ └── xcschememanagement.plist ├── CustomTabbarViewController ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── tabBar_background.imageset │ │ ├── Contents.json │ │ ├── tabBar_background.png │ │ ├── tabBar_background@2x.png │ │ └── tabBar_background@3x.png │ ├── tabBar_qrcode.imageset │ │ ├── Contents.json │ │ ├── tabBar_qrcode.png │ │ ├── tabBar_qrcode@2x.png │ │ └── tabBar_qrcode@3x.png │ ├── tabbar_activity.imageset │ │ ├── Contents.json │ │ ├── tabbar_activity@2x.png │ │ └── tabbar_activity@3x.png │ ├── tabbar_activity_light.imageset │ │ ├── Contents.json │ │ ├── tabbar_activity_light@2x.png │ │ └── tabbar_activity_light@3x.png │ ├── tabbar_home_page.imageset │ │ ├── Contents.json │ │ ├── tabbar_home_page@2x.png │ │ └── tabbar_home_page@3x.png │ ├── tabbar_home_page_light.imageset │ │ ├── Contents.json │ │ ├── tabbar_home_page_light@2x.png │ │ └── tabbar_home_page_light@3x.png │ ├── tabbar_my.imageset │ │ ├── Contents.json │ │ ├── tabbar_my@2x.png │ │ └── tabbar_my@3x.png │ ├── tabbar_my_light.imageset │ │ ├── Contents.json │ │ ├── tabbar_my_light@2x.png │ │ └── tabbar_my_light@3x.png │ ├── tabbar_order.imageset │ │ ├── Contents.json │ │ ├── tabbar_order@2x.png │ │ └── tabbar_order@3x.png │ └── tabbar_order_light.imageset │ │ ├── Contents.json │ │ ├── tabbar_order_light@2x.png │ │ └── tabbar_order_light@3x.png ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── DiscoverController.h ├── DiscoverController.m ├── HomePageController.h ├── HomePageController.m ├── Info.plist ├── MyTabBar.h ├── MyTabBar.m ├── MyTabBarController.h ├── MyTabBarController.m ├── MyViewController.h ├── MyViewController.m ├── SquareViewController.h ├── SquareViewController.m ├── ViewController.h ├── ViewController.m └── main.m ├── LICENSE └── README.md /.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 | -------------------------------------------------------------------------------- /CustomTabbarViewController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 076851AF22D7068A0023C8B4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 076851AE22D7068A0023C8B4 /* AppDelegate.m */; }; 11 | 076851B222D7068A0023C8B4 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 076851B122D7068A0023C8B4 /* ViewController.m */; }; 12 | 076851B522D7068A0023C8B4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 076851B322D7068A0023C8B4 /* Main.storyboard */; }; 13 | 076851B722D7068B0023C8B4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 076851B622D7068B0023C8B4 /* Assets.xcassets */; }; 14 | 076851BA22D7068B0023C8B4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 076851B822D7068B0023C8B4 /* LaunchScreen.storyboard */; }; 15 | 076851BD22D7068B0023C8B4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 076851BC22D7068B0023C8B4 /* main.m */; }; 16 | 076851C522D707760023C8B4 /* HomePageController.m in Sources */ = {isa = PBXBuildFile; fileRef = 076851C422D707760023C8B4 /* HomePageController.m */; }; 17 | 076851C822D707900023C8B4 /* DiscoverController.m in Sources */ = {isa = PBXBuildFile; fileRef = 076851C722D707900023C8B4 /* DiscoverController.m */; }; 18 | 076851CB22D7080C0023C8B4 /* SquareViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 076851CA22D7080C0023C8B4 /* SquareViewController.m */; }; 19 | 076851CE22D708180023C8B4 /* MyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 076851CD22D708180023C8B4 /* MyViewController.m */; }; 20 | 076851D122D709FA0023C8B4 /* MyTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = 076851D022D709FA0023C8B4 /* MyTabBarController.m */; }; 21 | 076851D422D711880023C8B4 /* MyTabBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 076851D322D711880023C8B4 /* MyTabBar.m */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXFileReference section */ 25 | 076851AA22D7068A0023C8B4 /* CustomTabbarViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomTabbarViewController.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | 076851AD22D7068A0023C8B4 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 27 | 076851AE22D7068A0023C8B4 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 28 | 076851B022D7068A0023C8B4 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 29 | 076851B122D7068A0023C8B4 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 30 | 076851B422D7068A0023C8B4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 31 | 076851B622D7068B0023C8B4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 32 | 076851B922D7068B0023C8B4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 33 | 076851BB22D7068B0023C8B4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | 076851BC22D7068B0023C8B4 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 35 | 076851C322D707760023C8B4 /* HomePageController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomePageController.h; sourceTree = ""; }; 36 | 076851C422D707760023C8B4 /* HomePageController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HomePageController.m; sourceTree = ""; }; 37 | 076851C622D707900023C8B4 /* DiscoverController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DiscoverController.h; sourceTree = ""; }; 38 | 076851C722D707900023C8B4 /* DiscoverController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DiscoverController.m; sourceTree = ""; }; 39 | 076851C922D7080C0023C8B4 /* SquareViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SquareViewController.h; sourceTree = ""; }; 40 | 076851CA22D7080C0023C8B4 /* SquareViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SquareViewController.m; sourceTree = ""; }; 41 | 076851CC22D708180023C8B4 /* MyViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MyViewController.h; sourceTree = ""; }; 42 | 076851CD22D708180023C8B4 /* MyViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyViewController.m; sourceTree = ""; }; 43 | 076851CF22D709FA0023C8B4 /* MyTabBarController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MyTabBarController.h; sourceTree = ""; }; 44 | 076851D022D709FA0023C8B4 /* MyTabBarController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyTabBarController.m; sourceTree = ""; }; 45 | 076851D222D711880023C8B4 /* MyTabBar.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MyTabBar.h; sourceTree = ""; }; 46 | 076851D322D711880023C8B4 /* MyTabBar.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyTabBar.m; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 076851A722D7068A0023C8B4 /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | ); 55 | runOnlyForDeploymentPostprocessing = 0; 56 | }; 57 | /* End PBXFrameworksBuildPhase section */ 58 | 59 | /* Begin PBXGroup section */ 60 | 076851A122D7068A0023C8B4 = { 61 | isa = PBXGroup; 62 | children = ( 63 | 076851AC22D7068A0023C8B4 /* CustomTabbarViewController */, 64 | 076851AB22D7068A0023C8B4 /* Products */, 65 | ); 66 | sourceTree = ""; 67 | }; 68 | 076851AB22D7068A0023C8B4 /* Products */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 076851AA22D7068A0023C8B4 /* CustomTabbarViewController.app */, 72 | ); 73 | name = Products; 74 | sourceTree = ""; 75 | }; 76 | 076851AC22D7068A0023C8B4 /* CustomTabbarViewController */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | 076851AD22D7068A0023C8B4 /* AppDelegate.h */, 80 | 076851AE22D7068A0023C8B4 /* AppDelegate.m */, 81 | 076851D222D711880023C8B4 /* MyTabBar.h */, 82 | 076851D322D711880023C8B4 /* MyTabBar.m */, 83 | 076851CF22D709FA0023C8B4 /* MyTabBarController.h */, 84 | 076851D022D709FA0023C8B4 /* MyTabBarController.m */, 85 | 076851C322D707760023C8B4 /* HomePageController.h */, 86 | 076851C422D707760023C8B4 /* HomePageController.m */, 87 | 076851C622D707900023C8B4 /* DiscoverController.h */, 88 | 076851C722D707900023C8B4 /* DiscoverController.m */, 89 | 076851C922D7080C0023C8B4 /* SquareViewController.h */, 90 | 076851CA22D7080C0023C8B4 /* SquareViewController.m */, 91 | 076851CC22D708180023C8B4 /* MyViewController.h */, 92 | 076851CD22D708180023C8B4 /* MyViewController.m */, 93 | 076851B022D7068A0023C8B4 /* ViewController.h */, 94 | 076851B122D7068A0023C8B4 /* ViewController.m */, 95 | 076851B322D7068A0023C8B4 /* Main.storyboard */, 96 | 076851B622D7068B0023C8B4 /* Assets.xcassets */, 97 | 076851B822D7068B0023C8B4 /* LaunchScreen.storyboard */, 98 | 076851BB22D7068B0023C8B4 /* Info.plist */, 99 | 076851BC22D7068B0023C8B4 /* main.m */, 100 | ); 101 | path = CustomTabbarViewController; 102 | sourceTree = ""; 103 | }; 104 | /* End PBXGroup section */ 105 | 106 | /* Begin PBXNativeTarget section */ 107 | 076851A922D7068A0023C8B4 /* CustomTabbarViewController */ = { 108 | isa = PBXNativeTarget; 109 | buildConfigurationList = 076851C022D7068B0023C8B4 /* Build configuration list for PBXNativeTarget "CustomTabbarViewController" */; 110 | buildPhases = ( 111 | 076851A622D7068A0023C8B4 /* Sources */, 112 | 076851A722D7068A0023C8B4 /* Frameworks */, 113 | 076851A822D7068A0023C8B4 /* Resources */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = CustomTabbarViewController; 120 | productName = CustomTabbarViewController; 121 | productReference = 076851AA22D7068A0023C8B4 /* CustomTabbarViewController.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 076851A222D7068A0023C8B4 /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1010; 131 | ORGANIZATIONNAME = "D-James"; 132 | TargetAttributes = { 133 | 076851A922D7068A0023C8B4 = { 134 | CreatedOnToolsVersion = 10.1; 135 | }; 136 | }; 137 | }; 138 | buildConfigurationList = 076851A522D7068A0023C8B4 /* Build configuration list for PBXProject "CustomTabbarViewController" */; 139 | compatibilityVersion = "Xcode 9.3"; 140 | developmentRegion = en; 141 | hasScannedForEncodings = 0; 142 | knownRegions = ( 143 | en, 144 | Base, 145 | ); 146 | mainGroup = 076851A122D7068A0023C8B4; 147 | productRefGroup = 076851AB22D7068A0023C8B4 /* Products */; 148 | projectDirPath = ""; 149 | projectRoot = ""; 150 | targets = ( 151 | 076851A922D7068A0023C8B4 /* CustomTabbarViewController */, 152 | ); 153 | }; 154 | /* End PBXProject section */ 155 | 156 | /* Begin PBXResourcesBuildPhase section */ 157 | 076851A822D7068A0023C8B4 /* Resources */ = { 158 | isa = PBXResourcesBuildPhase; 159 | buildActionMask = 2147483647; 160 | files = ( 161 | 076851BA22D7068B0023C8B4 /* LaunchScreen.storyboard in Resources */, 162 | 076851B722D7068B0023C8B4 /* Assets.xcassets in Resources */, 163 | 076851B522D7068A0023C8B4 /* Main.storyboard in Resources */, 164 | ); 165 | runOnlyForDeploymentPostprocessing = 0; 166 | }; 167 | /* End PBXResourcesBuildPhase section */ 168 | 169 | /* Begin PBXSourcesBuildPhase section */ 170 | 076851A622D7068A0023C8B4 /* Sources */ = { 171 | isa = PBXSourcesBuildPhase; 172 | buildActionMask = 2147483647; 173 | files = ( 174 | 076851B222D7068A0023C8B4 /* ViewController.m in Sources */, 175 | 076851C522D707760023C8B4 /* HomePageController.m in Sources */, 176 | 076851BD22D7068B0023C8B4 /* main.m in Sources */, 177 | 076851C822D707900023C8B4 /* DiscoverController.m in Sources */, 178 | 076851AF22D7068A0023C8B4 /* AppDelegate.m in Sources */, 179 | 076851D122D709FA0023C8B4 /* MyTabBarController.m in Sources */, 180 | 076851CB22D7080C0023C8B4 /* SquareViewController.m in Sources */, 181 | 076851D422D711880023C8B4 /* MyTabBar.m in Sources */, 182 | 076851CE22D708180023C8B4 /* MyViewController.m in Sources */, 183 | ); 184 | runOnlyForDeploymentPostprocessing = 0; 185 | }; 186 | /* End PBXSourcesBuildPhase section */ 187 | 188 | /* Begin PBXVariantGroup section */ 189 | 076851B322D7068A0023C8B4 /* Main.storyboard */ = { 190 | isa = PBXVariantGroup; 191 | children = ( 192 | 076851B422D7068A0023C8B4 /* Base */, 193 | ); 194 | name = Main.storyboard; 195 | sourceTree = ""; 196 | }; 197 | 076851B822D7068B0023C8B4 /* LaunchScreen.storyboard */ = { 198 | isa = PBXVariantGroup; 199 | children = ( 200 | 076851B922D7068B0023C8B4 /* Base */, 201 | ); 202 | name = LaunchScreen.storyboard; 203 | sourceTree = ""; 204 | }; 205 | /* End PBXVariantGroup section */ 206 | 207 | /* Begin XCBuildConfiguration section */ 208 | 076851BE22D7068B0023C8B4 /* Debug */ = { 209 | isa = XCBuildConfiguration; 210 | buildSettings = { 211 | ALWAYS_SEARCH_USER_PATHS = NO; 212 | CLANG_ANALYZER_NONNULL = YES; 213 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 214 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 215 | CLANG_CXX_LIBRARY = "libc++"; 216 | CLANG_ENABLE_MODULES = YES; 217 | CLANG_ENABLE_OBJC_ARC = YES; 218 | CLANG_ENABLE_OBJC_WEAK = YES; 219 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 220 | CLANG_WARN_BOOL_CONVERSION = YES; 221 | CLANG_WARN_COMMA = YES; 222 | CLANG_WARN_CONSTANT_CONVERSION = YES; 223 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 224 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 225 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 226 | CLANG_WARN_EMPTY_BODY = YES; 227 | CLANG_WARN_ENUM_CONVERSION = YES; 228 | CLANG_WARN_INFINITE_RECURSION = YES; 229 | CLANG_WARN_INT_CONVERSION = YES; 230 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 231 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 232 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 233 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 234 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 235 | CLANG_WARN_STRICT_PROTOTYPES = YES; 236 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 237 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 238 | CLANG_WARN_UNREACHABLE_CODE = YES; 239 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 240 | CODE_SIGN_IDENTITY = "iPhone Developer"; 241 | COPY_PHASE_STRIP = NO; 242 | DEBUG_INFORMATION_FORMAT = dwarf; 243 | ENABLE_STRICT_OBJC_MSGSEND = YES; 244 | ENABLE_TESTABILITY = YES; 245 | GCC_C_LANGUAGE_STANDARD = gnu11; 246 | GCC_DYNAMIC_NO_PIC = NO; 247 | GCC_NO_COMMON_BLOCKS = YES; 248 | GCC_OPTIMIZATION_LEVEL = 0; 249 | GCC_PREPROCESSOR_DEFINITIONS = ( 250 | "DEBUG=1", 251 | "$(inherited)", 252 | ); 253 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 254 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 255 | GCC_WARN_UNDECLARED_SELECTOR = YES; 256 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 257 | GCC_WARN_UNUSED_FUNCTION = YES; 258 | GCC_WARN_UNUSED_VARIABLE = YES; 259 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 260 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 261 | MTL_FAST_MATH = YES; 262 | ONLY_ACTIVE_ARCH = YES; 263 | SDKROOT = iphoneos; 264 | }; 265 | name = Debug; 266 | }; 267 | 076851BF22D7068B0023C8B4 /* Release */ = { 268 | isa = XCBuildConfiguration; 269 | buildSettings = { 270 | ALWAYS_SEARCH_USER_PATHS = NO; 271 | CLANG_ANALYZER_NONNULL = YES; 272 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 273 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 274 | CLANG_CXX_LIBRARY = "libc++"; 275 | CLANG_ENABLE_MODULES = YES; 276 | CLANG_ENABLE_OBJC_ARC = YES; 277 | CLANG_ENABLE_OBJC_WEAK = YES; 278 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 279 | CLANG_WARN_BOOL_CONVERSION = YES; 280 | CLANG_WARN_COMMA = YES; 281 | CLANG_WARN_CONSTANT_CONVERSION = YES; 282 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 283 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 284 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 285 | CLANG_WARN_EMPTY_BODY = YES; 286 | CLANG_WARN_ENUM_CONVERSION = YES; 287 | CLANG_WARN_INFINITE_RECURSION = YES; 288 | CLANG_WARN_INT_CONVERSION = YES; 289 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 290 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 291 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 292 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 293 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 294 | CLANG_WARN_STRICT_PROTOTYPES = YES; 295 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 296 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 297 | CLANG_WARN_UNREACHABLE_CODE = YES; 298 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 299 | CODE_SIGN_IDENTITY = "iPhone Developer"; 300 | COPY_PHASE_STRIP = NO; 301 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 302 | ENABLE_NS_ASSERTIONS = NO; 303 | ENABLE_STRICT_OBJC_MSGSEND = YES; 304 | GCC_C_LANGUAGE_STANDARD = gnu11; 305 | GCC_NO_COMMON_BLOCKS = YES; 306 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 307 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 308 | GCC_WARN_UNDECLARED_SELECTOR = YES; 309 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 310 | GCC_WARN_UNUSED_FUNCTION = YES; 311 | GCC_WARN_UNUSED_VARIABLE = YES; 312 | IPHONEOS_DEPLOYMENT_TARGET = 12.1; 313 | MTL_ENABLE_DEBUG_INFO = NO; 314 | MTL_FAST_MATH = YES; 315 | SDKROOT = iphoneos; 316 | VALIDATE_PRODUCT = YES; 317 | }; 318 | name = Release; 319 | }; 320 | 076851C122D7068B0023C8B4 /* Debug */ = { 321 | isa = XCBuildConfiguration; 322 | buildSettings = { 323 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 324 | CODE_SIGN_STYLE = Automatic; 325 | DEVELOPMENT_TEAM = 5GNHKFZZUW; 326 | INFOPLIST_FILE = CustomTabbarViewController/Info.plist; 327 | LD_RUNPATH_SEARCH_PATHS = ( 328 | "$(inherited)", 329 | "@executable_path/Frameworks", 330 | ); 331 | PRODUCT_BUNDLE_IDENTIFIER = "D-Code.CustomTabbarViewController"; 332 | PRODUCT_NAME = "$(TARGET_NAME)"; 333 | TARGETED_DEVICE_FAMILY = "1,2"; 334 | }; 335 | name = Debug; 336 | }; 337 | 076851C222D7068B0023C8B4 /* Release */ = { 338 | isa = XCBuildConfiguration; 339 | buildSettings = { 340 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 341 | CODE_SIGN_STYLE = Automatic; 342 | DEVELOPMENT_TEAM = 5GNHKFZZUW; 343 | INFOPLIST_FILE = CustomTabbarViewController/Info.plist; 344 | LD_RUNPATH_SEARCH_PATHS = ( 345 | "$(inherited)", 346 | "@executable_path/Frameworks", 347 | ); 348 | PRODUCT_BUNDLE_IDENTIFIER = "D-Code.CustomTabbarViewController"; 349 | PRODUCT_NAME = "$(TARGET_NAME)"; 350 | TARGETED_DEVICE_FAMILY = "1,2"; 351 | }; 352 | name = Release; 353 | }; 354 | /* End XCBuildConfiguration section */ 355 | 356 | /* Begin XCConfigurationList section */ 357 | 076851A522D7068A0023C8B4 /* Build configuration list for PBXProject "CustomTabbarViewController" */ = { 358 | isa = XCConfigurationList; 359 | buildConfigurations = ( 360 | 076851BE22D7068B0023C8B4 /* Debug */, 361 | 076851BF22D7068B0023C8B4 /* Release */, 362 | ); 363 | defaultConfigurationIsVisible = 0; 364 | defaultConfigurationName = Release; 365 | }; 366 | 076851C022D7068B0023C8B4 /* Build configuration list for PBXNativeTarget "CustomTabbarViewController" */ = { 367 | isa = XCConfigurationList; 368 | buildConfigurations = ( 369 | 076851C122D7068B0023C8B4 /* Debug */, 370 | 076851C222D7068B0023C8B4 /* Release */, 371 | ); 372 | defaultConfigurationIsVisible = 0; 373 | defaultConfigurationName = Release; 374 | }; 375 | /* End XCConfigurationList section */ 376 | }; 377 | rootObject = 076851A222D7068A0023C8B4 /* Project object */; 378 | } 379 | -------------------------------------------------------------------------------- /CustomTabbarViewController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CustomTabbarViewController.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /CustomTabbarViewController.xcodeproj/project.xcworkspace/xcuserdata/duan.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController.xcodeproj/project.xcworkspace/xcuserdata/duan.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /CustomTabbarViewController.xcodeproj/xcuserdata/duan.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /CustomTabbarViewController.xcodeproj/xcuserdata/duan.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CustomTabbarViewController.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /CustomTabbarViewController/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. 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 | -------------------------------------------------------------------------------- /CustomTabbarViewController/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "MyTabBarController.h" 11 | 12 | 13 | @interface AppDelegate () 14 | 15 | @end 16 | 17 | @implementation AppDelegate 18 | 19 | 20 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 21 | 22 | 23 | [self.window makeKeyAndVisible]; 24 | self.window.rootViewController = [MyTabBarController new]; 25 | 26 | 27 | return YES; 28 | } 29 | 30 | 31 | - (void)applicationWillResignActive:(UIApplication *)application { 32 | // 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. 33 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 34 | } 35 | 36 | 37 | - (void)applicationDidEnterBackground:(UIApplication *)application { 38 | // 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. 39 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 40 | } 41 | 42 | 43 | - (void)applicationWillEnterForeground:(UIApplication *)application { 44 | // 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. 45 | } 46 | 47 | 48 | - (void)applicationDidBecomeActive:(UIApplication *)application { 49 | // 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. 50 | } 51 | 52 | 53 | - (void)applicationWillTerminate:(UIApplication *)application { 54 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 55 | } 56 | 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /CustomTabbarViewController/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 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabBar_background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "tabBar_background.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "tabBar_background@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "tabBar_background@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabBar_background.imageset/tabBar_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabBar_background.imageset/tabBar_background.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabBar_background.imageset/tabBar_background@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabBar_background.imageset/tabBar_background@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabBar_background.imageset/tabBar_background@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabBar_background.imageset/tabBar_background@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabBar_qrcode.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "tabBar_qrcode.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "tabBar_qrcode@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "tabBar_qrcode@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabBar_qrcode.imageset/tabBar_qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabBar_qrcode.imageset/tabBar_qrcode.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabBar_qrcode.imageset/tabBar_qrcode@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabBar_qrcode.imageset/tabBar_qrcode@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabBar_qrcode.imageset/tabBar_qrcode@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabBar_qrcode.imageset/tabBar_qrcode@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_activity.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_activity@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_activity@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_activity.imageset/tabbar_activity@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_activity.imageset/tabbar_activity@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_activity.imageset/tabbar_activity@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_activity.imageset/tabbar_activity@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_activity_light.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_activity_light@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_activity_light@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_activity_light.imageset/tabbar_activity_light@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_activity_light.imageset/tabbar_activity_light@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_activity_light.imageset/tabbar_activity_light@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_activity_light.imageset/tabbar_activity_light@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_home_page.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_home_page@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_home_page@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_home_page.imageset/tabbar_home_page@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_home_page.imageset/tabbar_home_page@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_home_page.imageset/tabbar_home_page@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_home_page.imageset/tabbar_home_page@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_home_page_light.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_home_page_light@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_home_page_light@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_home_page_light.imageset/tabbar_home_page_light@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_home_page_light.imageset/tabbar_home_page_light@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_home_page_light.imageset/tabbar_home_page_light@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_home_page_light.imageset/tabbar_home_page_light@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_my.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_my@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_my@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_my.imageset/tabbar_my@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_my.imageset/tabbar_my@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_my.imageset/tabbar_my@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_my.imageset/tabbar_my@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_my_light.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_my_light@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_my_light@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_my_light.imageset/tabbar_my_light@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_my_light.imageset/tabbar_my_light@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_my_light.imageset/tabbar_my_light@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_my_light.imageset/tabbar_my_light@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_order.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_order@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_order@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_order.imageset/tabbar_order@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_order.imageset/tabbar_order@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_order.imageset/tabbar_order@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_order.imageset/tabbar_order@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_order_light.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tabbar_order_light@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "tabbar_order_light@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_order_light.imageset/tabbar_order_light@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_order_light.imageset/tabbar_order_light@2x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/Assets.xcassets/tabbar_order_light.imageset/tabbar_order_light@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/D-james/CustomTabbarViewController/57be10a1ae090e3d56348dd958760466e88e0093/CustomTabbarViewController/Assets.xcassets/tabbar_order_light.imageset/tabbar_order_light@3x.png -------------------------------------------------------------------------------- /CustomTabbarViewController/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 | -------------------------------------------------------------------------------- /CustomTabbarViewController/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 | -------------------------------------------------------------------------------- /CustomTabbarViewController/DiscoverController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DiscoverController.h 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface DiscoverController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /CustomTabbarViewController/DiscoverController.m: -------------------------------------------------------------------------------- 1 | // 2 | // DiscoverController.m 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import "DiscoverController.h" 10 | 11 | @interface DiscoverController () 12 | 13 | @end 14 | 15 | @implementation DiscoverController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | } 21 | 22 | /* 23 | #pragma mark - Navigation 24 | 25 | // In a storyboard-based application, you will often want to do a little preparation before navigation 26 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 27 | // Get the new view controller using [segue destinationViewController]. 28 | // Pass the selected object to the new view controller. 29 | } 30 | */ 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /CustomTabbarViewController/HomePageController.h: -------------------------------------------------------------------------------- 1 | // 2 | // HomePageController.h 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface HomePageController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /CustomTabbarViewController/HomePageController.m: -------------------------------------------------------------------------------- 1 | // 2 | // HomePageController.m 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import "HomePageController.h" 10 | 11 | @interface HomePageController () 12 | 13 | @end 14 | 15 | @implementation HomePageController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | 20 | 21 | } 22 | 23 | /* 24 | #pragma mark - Navigation 25 | 26 | // In a storyboard-based application, you will often want to do a little preparation before navigation 27 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 28 | // Get the new view controller using [segue destinationViewController]. 29 | // Pass the selected object to the new view controller. 30 | } 31 | */ 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /CustomTabbarViewController/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 | -------------------------------------------------------------------------------- /CustomTabbarViewController/MyTabBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // MyTabBar.h 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MyTabBar : UITabBar 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /CustomTabbarViewController/MyTabBar.m: -------------------------------------------------------------------------------- 1 | // 2 | // MyTabBar.m 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import "MyTabBar.h" 10 | 11 | @interface MyTabBar () 12 | 13 | @property (strong, nonatomic) UIButton *centerTabBarBtn; 14 | 15 | @end 16 | 17 | @implementation MyTabBar 18 | 19 | #define ScreenWidth ([UIScreen mainScreen].bounds.size.width) 20 | #define ScreenHeight ([UIScreen mainScreen].bounds.size.height) 21 | 22 | #define iPhoneX ((ScreenHeight == 812.0 || ScreenHeight == 896.0) ? YES : NO) 23 | #define kBottomSafeSpace (iPhoneX ? 34.0 : 0.0) 24 | 25 | - (instancetype)init{ 26 | if (self = [super init]){ 27 | [self initView]; 28 | } 29 | return self; 30 | } 31 | 32 | - (void)initView{ 33 | UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, -5, ScreenWidth, kBottomSafeSpace+49+10+40)]; 34 | 35 | // 加载图片 36 | UIImage *image = [UIImage imageNamed:@"tabBar_background"]; 37 | 38 | // 设置不拉伸区域 39 | CGFloat top = 20; 40 | CGFloat left = 0; 41 | CGFloat bottom = 0; 42 | CGFloat right = 0; 43 | 44 | // 拉伸图片 45 | UIImage *bgImage = [image resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, bottom, right) resizingMode:UIImageResizingModeStretch]; 46 | 47 | UIImageView *imageView = [[UIImageView alloc] initWithImage:bgImage]; 48 | imageView.contentMode = UIViewContentModeScaleToFill; 49 | imageView.frame = backView.frame; 50 | [backView addSubview:imageView]; 51 | 52 | [self insertSubview:backView atIndex:0]; 53 | 54 | // 去除顶部横线 55 | [self setBackgroundImage:[UIImage new]]; 56 | [self setShadowImage:[UIImage new]]; 57 | 58 | } 59 | 60 | // layoutSubviews遍历子控件寻找UITabBarButton,给UITabBarButton重新设置frame 61 | - (void)layoutSubviews { 62 | [super layoutSubviews]; 63 | 64 | CGFloat width = 50; 65 | self.centerTabBarBtn.frame = CGRectMake((ScreenWidth-width)/2, -5, width, width); 66 | 67 | CGFloat tabBarButtonW = ScreenWidth / 5; 68 | CGFloat tabBarButtonIndex = 0; 69 | for (UIView *child in self.subviews) { 70 | 71 | Class class = NSClassFromString(@"UITabBarButton"); 72 | if ([child isKindOfClass:class]) { 73 | 74 | // 重新设置frame 75 | CGRect frame = CGRectMake(tabBarButtonIndex * tabBarButtonW, 0, tabBarButtonW, 49); 76 | child.frame = frame; 77 | 78 | // 增加索引 79 | if (tabBarButtonIndex == 1) { 80 | tabBarButtonIndex++; 81 | } 82 | tabBarButtonIndex++; 83 | } 84 | } 85 | } 86 | 87 | 88 | ////处理超出区域点击无效的问题 89 | //- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{ 90 | // if (self.hidden){ 91 | // return [super hitTest:point withEvent:event]; 92 | // }else { 93 | // //转换坐标 94 | // CGPoint tempPoint = [self.centerTabBarBtn convertPoint:point fromView:self]; 95 | // //判断点击的点是否在按钮区域内 96 | // if (CGRectContainsPoint(self.centerTabBarBtn.bounds, tempPoint)){ 97 | // //返回按钮 98 | // return self.centerTabBarBtn; 99 | // }else { 100 | // return [super hitTest:point withEvent:event]; 101 | // } 102 | // } 103 | //} 104 | 105 | 106 | - (void)centerTabBarBtnEvent { 107 | 108 | NSLog(@"click event"); 109 | } 110 | 111 | 112 | - (UIButton *)centerTabBarBtn { 113 | 114 | if (_centerTabBarBtn == nil) { 115 | _centerTabBarBtn = [UIButton buttonWithType:UIButtonTypeCustom]; 116 | [self addSubview:_centerTabBarBtn]; 117 | [_centerTabBarBtn setImage:[UIImage imageNamed:@"tabBar_qrcode"] forState:UIControlStateNormal]; 118 | _centerTabBarBtn.adjustsImageWhenHighlighted = false; 119 | [_centerTabBarBtn addTarget:self action:@selector(centerTabBarBtnEvent) forControlEvents:UIControlEventTouchUpInside]; 120 | } 121 | 122 | return _centerTabBarBtn; 123 | } 124 | 125 | @end 126 | -------------------------------------------------------------------------------- /CustomTabbarViewController/MyTabBarController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MyTabBarController.h 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MyTabBarController : UITabBarController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /CustomTabbarViewController/MyTabBarController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MyTabBarController.m 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import "MyTabBarController.h" 10 | #import "HomePageController.h" 11 | #import "DiscoverController.h" 12 | #import "SquareViewController.h" 13 | #import "MyViewController.h" 14 | 15 | #import "MyTabBar.h" 16 | 17 | 18 | 19 | @interface MyTabBarController () 20 | 21 | @end 22 | 23 | @implementation MyTabBarController 24 | 25 | - (void)viewDidLoad { 26 | [super viewDidLoad]; 27 | // Do any additional setup after loading the view. 28 | 29 | 30 | [self setValue:[MyTabBar new] forKey:@"tabBar"]; 31 | 32 | [self addCustomChildVC:[HomePageController new] title:@"首页" imageName:@"tabbar_home_page"]; 33 | [self addCustomChildVC:[DiscoverController new] title:@"发现" imageName:@"tabbar_activity"]; 34 | [self addCustomChildVC:[SquareViewController new] title:@"广场" imageName:@"tabbar_order"]; 35 | [self addCustomChildVC:[MyViewController new] title:@"我的" imageName:@"tabbar_my"]; 36 | 37 | } 38 | 39 | 40 | 41 | - (void)addCustomChildVC:(UIViewController *)vc title:(NSString *)title imageName:(NSString *)imageName { 42 | 43 | vc.title = title; 44 | vc.tabBarItem.image = [UIImage imageNamed:imageName]; 45 | vc.view.backgroundColor = [UIColor colorWithRed:arc4random_uniform(256) / 255.0 green:arc4random_uniform(256) / 255.0 blue:arc4random_uniform(256) / 255.0 alpha:1]; 46 | 47 | UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc]; 48 | 49 | [self addChildViewController:nav]; 50 | 51 | } 52 | 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /CustomTabbarViewController/MyViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MyViewController.h 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MyViewController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /CustomTabbarViewController/MyViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MyViewController.m 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import "MyViewController.h" 10 | 11 | @interface MyViewController () 12 | 13 | @end 14 | 15 | @implementation MyViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | } 21 | 22 | /* 23 | #pragma mark - Navigation 24 | 25 | // In a storyboard-based application, you will often want to do a little preparation before navigation 26 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 27 | // Get the new view controller using [segue destinationViewController]. 28 | // Pass the selected object to the new view controller. 29 | } 30 | */ 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /CustomTabbarViewController/SquareViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SquareViewController.h 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface SquareViewController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /CustomTabbarViewController/SquareViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SquareViewController.m 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import "SquareViewController.h" 10 | 11 | @interface SquareViewController () 12 | 13 | @end 14 | 15 | @implementation SquareViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | } 21 | 22 | /* 23 | #pragma mark - Navigation 24 | 25 | // In a storyboard-based application, you will often want to do a little preparation before navigation 26 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 27 | // Get the new view controller using [segue destinationViewController]. 28 | // Pass the selected object to the new view controller. 29 | } 30 | */ 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /CustomTabbarViewController/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /CustomTabbarViewController/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. 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, typically from a nib. 20 | 21 | 22 | 23 | } 24 | 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /CustomTabbarViewController/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CustomTabbarViewController 4 | // 5 | // Created by duanshengwu on 2019/7/11. 6 | // Copyright © 2019 D-James. 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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 D-james 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CustomTabbarViewController 2 | iOS自定义tabbar实现中间凸起的样式 3 | 4 | 简书地址:[https://www.jianshu.com/p/e08341a90a9e](https://www.jianshu.com/p/e08341a90a9e) 5 | --------------------------------------------------------------------------------