├── README.md ├── VMTabbarCustomize.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── VMTabbarCustomize.xccheckout └── xcuserdata │ └── vumai.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── VMTabbarCustomize.xcscheme │ └── xcschememanagement.plist ├── VMTabbarCustomize ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── VMMain_ViewControler.h ├── VMMain_ViewControler.m ├── VMTabBar.h ├── VMTabBar.m ├── icon_Expences.png ├── icon_Expences@2x.png ├── icon_Expences@3x.png ├── icon_History.png ├── icon_History@2x.png ├── icon_History@3x.png ├── icon_Summary.png ├── icon_Summary@2x.png ├── icon_Summary@3x.png ├── icon_setting.png ├── icon_setting@2x.png ├── icon_setting@3x.png └── main.m └── VMTabbarCustomizeTests ├── Info.plist └── VMTabbarCustomizeTests.m /README.md: -------------------------------------------------------------------------------- 1 | # VMTabbarCustomize 2 | https://youtu.be/7ioru9E6nGg 3 | 4 | ## Author 5 | Vumai 6 | vumai.mlh@gmail.com 7 | Vumai.me 8 | 9 | ## Overview ## 10 | 11 | VMTabbarCustomize is an iOS control. It replaced the default controller TabBar in xcode with a new tabbar with animation.It's something fun and beauty if you enjoy. 12 | 13 | ## Required ## 14 | You need a high-resolusion icon! 15 | Suggest 84x84 with @2x image 16 | 127x127 @3x image 17 | 18 | ## How to use ## 19 | 20 | First, you need to copy 2 files VMTabBar.h/.m to your project. Then, import them to your class 21 | 22 | ```objc 23 | #import "VMTabBar.h" 24 | ``` 25 | 26 | Now you can add this funtion to show VMTabBar: 27 | 28 | ```objc 29 | VMTabBar *tabbar = [[VMTabBar alloc] initWithFrame:self.view.frame]; 30 | [tabbar setDelegate:self];//1 31 | 32 | NSMutableArray *arrColor = [NSMutableArray arrayWithObjects: 33 | rgb(52, 152, 219), 34 | rgb(26, 188, 156), 35 | rgb(231, 76, 60), 36 | rgb(230, 126, 34),nil]; 37 | NSMutableArray *arrView = [NSMutableArray array]; 38 | for (NSInteger i = 0; i<4; i++) { 39 | UIView *vi = [[UIView alloc] init]; 40 | [vi setBackgroundColor:(UIColor*)[arrColor objectAtIndex:i]]; 41 | [arrView addObject:vi]; 42 | } 43 | [tabbar addListOfViewWhenClickTabbar:arrView]; //2 44 | [tabbar addListOfItemImage:[NSMutableArray arrayWithObjects:@"icon_Summary.png",@"icon_Expences.png",@"icon_History.png",@"icon_setting.png", nil]]; //3 45 | [tabbar addListOfItemText:[NSMutableArray arrayWithObjects:@"Summary",@"Expences",@"History",@"Setting", nil]]; //4 46 | 47 | [tabbar iconTabBarWithNumber:4]; // 5 48 | [tabbar selectTabBarValueWithTag:1]; //6 49 | [tabbar changeColorTabbarWithColor:[UIColor whiteColor]]; //7 50 | [self.view addSubview:tabbar]; 51 | ``` 52 | Let’s run through this method step by step: 53 | 1: You set the view controller as the delegate of the VMTabBar so that the view controller can receive the relevant delegate method calls. 54 | 55 | 2. You make 4 UIViewController or UIView are presented for 4 icons. 56 | 3. List of icons you can show. 57 | 4. List of names for tab 58 | 5. You call iconTabBarWithNumber: which build new tabbar which animation with base of data from (2) (3) (4). The methor also load icons, views and texts in this view. 59 | 6. Select tab you want to first load. 60 | 7. you can change color of the icon and the text that you want. If you cant's use this method the color of icon is default icon image. 61 | 62 | 63 | ## Release notes 64 | 65 | Version 1.0 66 | 67 | ## MIT License 68 | Copyright (c) 2015 VuMai 69 | 70 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 71 | 72 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 73 | 74 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 75 | -------------------------------------------------------------------------------- /VMTabbarCustomize.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 27DD68EC1AE67F1100322D7E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 27DD68EB1AE67F1100322D7E /* main.m */; }; 11 | 27DD68EF1AE67F1100322D7E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 27DD68EE1AE67F1100322D7E /* AppDelegate.m */; }; 12 | 27DD68F51AE67F1100322D7E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 27DD68F31AE67F1100322D7E /* Main.storyboard */; }; 13 | 27DD68F71AE67F1100322D7E /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 27DD68F61AE67F1100322D7E /* Images.xcassets */; }; 14 | 27DD68FA1AE67F1100322D7E /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 27DD68F81AE67F1100322D7E /* LaunchScreen.xib */; }; 15 | 27DD69061AE67F1100322D7E /* VMTabbarCustomizeTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 27DD69051AE67F1100322D7E /* VMTabbarCustomizeTests.m */; }; 16 | 27DD69111AE684AC00322D7E /* VMMain_ViewControler.m in Sources */ = {isa = PBXBuildFile; fileRef = 27DD69101AE684AC00322D7E /* VMMain_ViewControler.m */; }; 17 | 27DD69141AE684E900322D7E /* VMTabBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 27DD69131AE684E900322D7E /* VMTabBar.m */; }; 18 | 27DD69221AE6861500322D7E /* icon_Expences.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD69161AE6861500322D7E /* icon_Expences.png */; }; 19 | 27DD69231AE6861500322D7E /* icon_Expences@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD69171AE6861500322D7E /* icon_Expences@2x.png */; }; 20 | 27DD69241AE6861500322D7E /* icon_Expences@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD69181AE6861500322D7E /* icon_Expences@3x.png */; }; 21 | 27DD69251AE6861500322D7E /* icon_History.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD69191AE6861500322D7E /* icon_History.png */; }; 22 | 27DD69261AE6861500322D7E /* icon_History@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD691A1AE6861500322D7E /* icon_History@2x.png */; }; 23 | 27DD69271AE6861500322D7E /* icon_History@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD691B1AE6861500322D7E /* icon_History@3x.png */; }; 24 | 27DD69281AE6861500322D7E /* icon_setting.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD691C1AE6861500322D7E /* icon_setting.png */; }; 25 | 27DD69291AE6861500322D7E /* icon_setting@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD691D1AE6861500322D7E /* icon_setting@2x.png */; }; 26 | 27DD692A1AE6861500322D7E /* icon_setting@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD691E1AE6861500322D7E /* icon_setting@3x.png */; }; 27 | 27DD692B1AE6861500322D7E /* icon_Summary.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD691F1AE6861500322D7E /* icon_Summary.png */; }; 28 | 27DD692C1AE6861500322D7E /* icon_Summary@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD69201AE6861500322D7E /* icon_Summary@2x.png */; }; 29 | 27DD692D1AE6861500322D7E /* icon_Summary@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 27DD69211AE6861500322D7E /* icon_Summary@3x.png */; }; 30 | /* End PBXBuildFile section */ 31 | 32 | /* Begin PBXContainerItemProxy section */ 33 | 27DD69001AE67F1100322D7E /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 27DD68DE1AE67F1000322D7E /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 27DD68E51AE67F1000322D7E; 38 | remoteInfo = VMTabbarCustomize; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 27DD68E61AE67F1000322D7E /* VMTabbarCustomize.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VMTabbarCustomize.app; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 27DD68EA1AE67F1100322D7E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 27DD68EB1AE67F1100322D7E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 46 | 27DD68ED1AE67F1100322D7E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 47 | 27DD68EE1AE67F1100322D7E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 48 | 27DD68F41AE67F1100322D7E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 49 | 27DD68F61AE67F1100322D7E /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 50 | 27DD68F91AE67F1100322D7E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 51 | 27DD68FF1AE67F1100322D7E /* VMTabbarCustomizeTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VMTabbarCustomizeTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 27DD69041AE67F1100322D7E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | 27DD69051AE67F1100322D7E /* VMTabbarCustomizeTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VMTabbarCustomizeTests.m; sourceTree = ""; }; 54 | 27DD690F1AE684AC00322D7E /* VMMain_ViewControler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VMMain_ViewControler.h; sourceTree = ""; }; 55 | 27DD69101AE684AC00322D7E /* VMMain_ViewControler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VMMain_ViewControler.m; sourceTree = ""; }; 56 | 27DD69121AE684E900322D7E /* VMTabBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VMTabBar.h; sourceTree = ""; }; 57 | 27DD69131AE684E900322D7E /* VMTabBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VMTabBar.m; sourceTree = ""; }; 58 | 27DD69161AE6861500322D7E /* icon_Expences.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_Expences.png; sourceTree = ""; }; 59 | 27DD69171AE6861500322D7E /* icon_Expences@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_Expences@2x.png"; sourceTree = ""; }; 60 | 27DD69181AE6861500322D7E /* icon_Expences@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_Expences@3x.png"; sourceTree = ""; }; 61 | 27DD69191AE6861500322D7E /* icon_History.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_History.png; sourceTree = ""; }; 62 | 27DD691A1AE6861500322D7E /* icon_History@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_History@2x.png"; sourceTree = ""; }; 63 | 27DD691B1AE6861500322D7E /* icon_History@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_History@3x.png"; sourceTree = ""; }; 64 | 27DD691C1AE6861500322D7E /* icon_setting.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_setting.png; sourceTree = ""; }; 65 | 27DD691D1AE6861500322D7E /* icon_setting@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_setting@2x.png"; sourceTree = ""; }; 66 | 27DD691E1AE6861500322D7E /* icon_setting@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_setting@3x.png"; sourceTree = ""; }; 67 | 27DD691F1AE6861500322D7E /* icon_Summary.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_Summary.png; sourceTree = ""; }; 68 | 27DD69201AE6861500322D7E /* icon_Summary@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_Summary@2x.png"; sourceTree = ""; }; 69 | 27DD69211AE6861500322D7E /* icon_Summary@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_Summary@3x.png"; sourceTree = ""; }; 70 | /* End PBXFileReference section */ 71 | 72 | /* Begin PBXFrameworksBuildPhase section */ 73 | 27DD68E31AE67F1000322D7E /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | 27DD68FC1AE67F1100322D7E /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | /* End PBXFrameworksBuildPhase section */ 88 | 89 | /* Begin PBXGroup section */ 90 | 27DD68DD1AE67F1000322D7E = { 91 | isa = PBXGroup; 92 | children = ( 93 | 27DD68E81AE67F1000322D7E /* VMTabbarCustomize */, 94 | 27DD69021AE67F1100322D7E /* VMTabbarCustomizeTests */, 95 | 27DD68E71AE67F1000322D7E /* Products */, 96 | ); 97 | sourceTree = ""; 98 | }; 99 | 27DD68E71AE67F1000322D7E /* Products */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 27DD68E61AE67F1000322D7E /* VMTabbarCustomize.app */, 103 | 27DD68FF1AE67F1100322D7E /* VMTabbarCustomizeTests.xctest */, 104 | ); 105 | name = Products; 106 | sourceTree = ""; 107 | }; 108 | 27DD68E81AE67F1000322D7E /* VMTabbarCustomize */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 27DD69151AE6860400322D7E /* Images */, 112 | 27DD68ED1AE67F1100322D7E /* AppDelegate.h */, 113 | 27DD68EE1AE67F1100322D7E /* AppDelegate.m */, 114 | 27DD68F31AE67F1100322D7E /* Main.storyboard */, 115 | 27DD68F61AE67F1100322D7E /* Images.xcassets */, 116 | 27DD68F81AE67F1100322D7E /* LaunchScreen.xib */, 117 | 27DD68E91AE67F1000322D7E /* Supporting Files */, 118 | 27DD690F1AE684AC00322D7E /* VMMain_ViewControler.h */, 119 | 27DD69101AE684AC00322D7E /* VMMain_ViewControler.m */, 120 | 27DD69121AE684E900322D7E /* VMTabBar.h */, 121 | 27DD69131AE684E900322D7E /* VMTabBar.m */, 122 | ); 123 | path = VMTabbarCustomize; 124 | sourceTree = ""; 125 | }; 126 | 27DD68E91AE67F1000322D7E /* Supporting Files */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 27DD68EA1AE67F1100322D7E /* Info.plist */, 130 | 27DD68EB1AE67F1100322D7E /* main.m */, 131 | ); 132 | name = "Supporting Files"; 133 | sourceTree = ""; 134 | }; 135 | 27DD69021AE67F1100322D7E /* VMTabbarCustomizeTests */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 27DD69051AE67F1100322D7E /* VMTabbarCustomizeTests.m */, 139 | 27DD69031AE67F1100322D7E /* Supporting Files */, 140 | ); 141 | path = VMTabbarCustomizeTests; 142 | sourceTree = ""; 143 | }; 144 | 27DD69031AE67F1100322D7E /* Supporting Files */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 27DD69041AE67F1100322D7E /* Info.plist */, 148 | ); 149 | name = "Supporting Files"; 150 | sourceTree = ""; 151 | }; 152 | 27DD69151AE6860400322D7E /* Images */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 27DD69161AE6861500322D7E /* icon_Expences.png */, 156 | 27DD69171AE6861500322D7E /* icon_Expences@2x.png */, 157 | 27DD69181AE6861500322D7E /* icon_Expences@3x.png */, 158 | 27DD69191AE6861500322D7E /* icon_History.png */, 159 | 27DD691A1AE6861500322D7E /* icon_History@2x.png */, 160 | 27DD691B1AE6861500322D7E /* icon_History@3x.png */, 161 | 27DD691C1AE6861500322D7E /* icon_setting.png */, 162 | 27DD691D1AE6861500322D7E /* icon_setting@2x.png */, 163 | 27DD691E1AE6861500322D7E /* icon_setting@3x.png */, 164 | 27DD691F1AE6861500322D7E /* icon_Summary.png */, 165 | 27DD69201AE6861500322D7E /* icon_Summary@2x.png */, 166 | 27DD69211AE6861500322D7E /* icon_Summary@3x.png */, 167 | ); 168 | name = Images; 169 | sourceTree = ""; 170 | }; 171 | /* End PBXGroup section */ 172 | 173 | /* Begin PBXNativeTarget section */ 174 | 27DD68E51AE67F1000322D7E /* VMTabbarCustomize */ = { 175 | isa = PBXNativeTarget; 176 | buildConfigurationList = 27DD69091AE67F1100322D7E /* Build configuration list for PBXNativeTarget "VMTabbarCustomize" */; 177 | buildPhases = ( 178 | 27DD68E21AE67F1000322D7E /* Sources */, 179 | 27DD68E31AE67F1000322D7E /* Frameworks */, 180 | 27DD68E41AE67F1000322D7E /* Resources */, 181 | ); 182 | buildRules = ( 183 | ); 184 | dependencies = ( 185 | ); 186 | name = VMTabbarCustomize; 187 | productName = VMTabbarCustomize; 188 | productReference = 27DD68E61AE67F1000322D7E /* VMTabbarCustomize.app */; 189 | productType = "com.apple.product-type.application"; 190 | }; 191 | 27DD68FE1AE67F1100322D7E /* VMTabbarCustomizeTests */ = { 192 | isa = PBXNativeTarget; 193 | buildConfigurationList = 27DD690C1AE67F1100322D7E /* Build configuration list for PBXNativeTarget "VMTabbarCustomizeTests" */; 194 | buildPhases = ( 195 | 27DD68FB1AE67F1100322D7E /* Sources */, 196 | 27DD68FC1AE67F1100322D7E /* Frameworks */, 197 | 27DD68FD1AE67F1100322D7E /* Resources */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | 27DD69011AE67F1100322D7E /* PBXTargetDependency */, 203 | ); 204 | name = VMTabbarCustomizeTests; 205 | productName = VMTabbarCustomizeTests; 206 | productReference = 27DD68FF1AE67F1100322D7E /* VMTabbarCustomizeTests.xctest */; 207 | productType = "com.apple.product-type.bundle.unit-test"; 208 | }; 209 | /* End PBXNativeTarget section */ 210 | 211 | /* Begin PBXProject section */ 212 | 27DD68DE1AE67F1000322D7E /* Project object */ = { 213 | isa = PBXProject; 214 | attributes = { 215 | LastUpgradeCheck = 0630; 216 | ORGANIZATIONNAME = VuMai; 217 | TargetAttributes = { 218 | 27DD68E51AE67F1000322D7E = { 219 | CreatedOnToolsVersion = 6.3; 220 | }; 221 | 27DD68FE1AE67F1100322D7E = { 222 | CreatedOnToolsVersion = 6.3; 223 | TestTargetID = 27DD68E51AE67F1000322D7E; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 27DD68E11AE67F1000322D7E /* Build configuration list for PBXProject "VMTabbarCustomize" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 27DD68DD1AE67F1000322D7E; 236 | productRefGroup = 27DD68E71AE67F1000322D7E /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 27DD68E51AE67F1000322D7E /* VMTabbarCustomize */, 241 | 27DD68FE1AE67F1100322D7E /* VMTabbarCustomizeTests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 27DD68E41AE67F1000322D7E /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 27DD68F51AE67F1100322D7E /* Main.storyboard in Resources */, 252 | 27DD69241AE6861500322D7E /* icon_Expences@3x.png in Resources */, 253 | 27DD69261AE6861500322D7E /* icon_History@2x.png in Resources */, 254 | 27DD68FA1AE67F1100322D7E /* LaunchScreen.xib in Resources */, 255 | 27DD68F71AE67F1100322D7E /* Images.xcassets in Resources */, 256 | 27DD69271AE6861500322D7E /* icon_History@3x.png in Resources */, 257 | 27DD69231AE6861500322D7E /* icon_Expences@2x.png in Resources */, 258 | 27DD692A1AE6861500322D7E /* icon_setting@3x.png in Resources */, 259 | 27DD692B1AE6861500322D7E /* icon_Summary.png in Resources */, 260 | 27DD692D1AE6861500322D7E /* icon_Summary@3x.png in Resources */, 261 | 27DD69221AE6861500322D7E /* icon_Expences.png in Resources */, 262 | 27DD69251AE6861500322D7E /* icon_History.png in Resources */, 263 | 27DD69281AE6861500322D7E /* icon_setting.png in Resources */, 264 | 27DD692C1AE6861500322D7E /* icon_Summary@2x.png in Resources */, 265 | 27DD69291AE6861500322D7E /* icon_setting@2x.png in Resources */, 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | }; 269 | 27DD68FD1AE67F1100322D7E /* Resources */ = { 270 | isa = PBXResourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXResourcesBuildPhase section */ 277 | 278 | /* Begin PBXSourcesBuildPhase section */ 279 | 27DD68E21AE67F1000322D7E /* Sources */ = { 280 | isa = PBXSourcesBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | 27DD69141AE684E900322D7E /* VMTabBar.m in Sources */, 284 | 27DD69111AE684AC00322D7E /* VMMain_ViewControler.m in Sources */, 285 | 27DD68EF1AE67F1100322D7E /* AppDelegate.m in Sources */, 286 | 27DD68EC1AE67F1100322D7E /* main.m in Sources */, 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | }; 290 | 27DD68FB1AE67F1100322D7E /* Sources */ = { 291 | isa = PBXSourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | 27DD69061AE67F1100322D7E /* VMTabbarCustomizeTests.m in Sources */, 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | }; 298 | /* End PBXSourcesBuildPhase section */ 299 | 300 | /* Begin PBXTargetDependency section */ 301 | 27DD69011AE67F1100322D7E /* PBXTargetDependency */ = { 302 | isa = PBXTargetDependency; 303 | target = 27DD68E51AE67F1000322D7E /* VMTabbarCustomize */; 304 | targetProxy = 27DD69001AE67F1100322D7E /* PBXContainerItemProxy */; 305 | }; 306 | /* End PBXTargetDependency section */ 307 | 308 | /* Begin PBXVariantGroup section */ 309 | 27DD68F31AE67F1100322D7E /* Main.storyboard */ = { 310 | isa = PBXVariantGroup; 311 | children = ( 312 | 27DD68F41AE67F1100322D7E /* Base */, 313 | ); 314 | name = Main.storyboard; 315 | sourceTree = ""; 316 | }; 317 | 27DD68F81AE67F1100322D7E /* LaunchScreen.xib */ = { 318 | isa = PBXVariantGroup; 319 | children = ( 320 | 27DD68F91AE67F1100322D7E /* Base */, 321 | ); 322 | name = LaunchScreen.xib; 323 | sourceTree = ""; 324 | }; 325 | /* End PBXVariantGroup section */ 326 | 327 | /* Begin XCBuildConfiguration section */ 328 | 27DD69071AE67F1100322D7E /* Debug */ = { 329 | isa = XCBuildConfiguration; 330 | buildSettings = { 331 | ALWAYS_SEARCH_USER_PATHS = NO; 332 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 333 | CLANG_CXX_LIBRARY = "libc++"; 334 | CLANG_ENABLE_MODULES = YES; 335 | CLANG_ENABLE_OBJC_ARC = YES; 336 | CLANG_WARN_BOOL_CONVERSION = YES; 337 | CLANG_WARN_CONSTANT_CONVERSION = YES; 338 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 339 | CLANG_WARN_EMPTY_BODY = YES; 340 | CLANG_WARN_ENUM_CONVERSION = YES; 341 | CLANG_WARN_INT_CONVERSION = YES; 342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 343 | CLANG_WARN_UNREACHABLE_CODE = YES; 344 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 345 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 346 | COPY_PHASE_STRIP = NO; 347 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 348 | ENABLE_STRICT_OBJC_MSGSEND = YES; 349 | GCC_C_LANGUAGE_STANDARD = gnu99; 350 | GCC_DYNAMIC_NO_PIC = NO; 351 | GCC_NO_COMMON_BLOCKS = YES; 352 | GCC_OPTIMIZATION_LEVEL = 0; 353 | GCC_PREPROCESSOR_DEFINITIONS = ( 354 | "DEBUG=1", 355 | "$(inherited)", 356 | ); 357 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 358 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 359 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 360 | GCC_WARN_UNDECLARED_SELECTOR = YES; 361 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 362 | GCC_WARN_UNUSED_FUNCTION = YES; 363 | GCC_WARN_UNUSED_VARIABLE = YES; 364 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 365 | MTL_ENABLE_DEBUG_INFO = YES; 366 | ONLY_ACTIVE_ARCH = YES; 367 | SDKROOT = iphoneos; 368 | }; 369 | name = Debug; 370 | }; 371 | 27DD69081AE67F1100322D7E /* Release */ = { 372 | isa = XCBuildConfiguration; 373 | buildSettings = { 374 | ALWAYS_SEARCH_USER_PATHS = NO; 375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 376 | CLANG_CXX_LIBRARY = "libc++"; 377 | CLANG_ENABLE_MODULES = YES; 378 | CLANG_ENABLE_OBJC_ARC = YES; 379 | CLANG_WARN_BOOL_CONVERSION = YES; 380 | CLANG_WARN_CONSTANT_CONVERSION = YES; 381 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 382 | CLANG_WARN_EMPTY_BODY = YES; 383 | CLANG_WARN_ENUM_CONVERSION = YES; 384 | CLANG_WARN_INT_CONVERSION = YES; 385 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 386 | CLANG_WARN_UNREACHABLE_CODE = YES; 387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 389 | COPY_PHASE_STRIP = NO; 390 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 391 | ENABLE_NS_ASSERTIONS = NO; 392 | ENABLE_STRICT_OBJC_MSGSEND = YES; 393 | GCC_C_LANGUAGE_STANDARD = gnu99; 394 | GCC_NO_COMMON_BLOCKS = YES; 395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 397 | GCC_WARN_UNDECLARED_SELECTOR = YES; 398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 399 | GCC_WARN_UNUSED_FUNCTION = YES; 400 | GCC_WARN_UNUSED_VARIABLE = YES; 401 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 402 | MTL_ENABLE_DEBUG_INFO = NO; 403 | SDKROOT = iphoneos; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 27DD690A1AE67F1100322D7E /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | buildSettings = { 411 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 412 | INFOPLIST_FILE = VMTabbarCustomize/Info.plist; 413 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 414 | PRODUCT_NAME = "$(TARGET_NAME)"; 415 | }; 416 | name = Debug; 417 | }; 418 | 27DD690B1AE67F1100322D7E /* Release */ = { 419 | isa = XCBuildConfiguration; 420 | buildSettings = { 421 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 422 | INFOPLIST_FILE = VMTabbarCustomize/Info.plist; 423 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 424 | PRODUCT_NAME = "$(TARGET_NAME)"; 425 | }; 426 | name = Release; 427 | }; 428 | 27DD690D1AE67F1100322D7E /* Debug */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | BUNDLE_LOADER = "$(TEST_HOST)"; 432 | FRAMEWORK_SEARCH_PATHS = ( 433 | "$(SDKROOT)/Developer/Library/Frameworks", 434 | "$(inherited)", 435 | ); 436 | GCC_PREPROCESSOR_DEFINITIONS = ( 437 | "DEBUG=1", 438 | "$(inherited)", 439 | ); 440 | INFOPLIST_FILE = VMTabbarCustomizeTests/Info.plist; 441 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 442 | PRODUCT_NAME = "$(TARGET_NAME)"; 443 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/VMTabbarCustomize.app/VMTabbarCustomize"; 444 | }; 445 | name = Debug; 446 | }; 447 | 27DD690E1AE67F1100322D7E /* Release */ = { 448 | isa = XCBuildConfiguration; 449 | buildSettings = { 450 | BUNDLE_LOADER = "$(TEST_HOST)"; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(SDKROOT)/Developer/Library/Frameworks", 453 | "$(inherited)", 454 | ); 455 | INFOPLIST_FILE = VMTabbarCustomizeTests/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/VMTabbarCustomize.app/VMTabbarCustomize"; 459 | }; 460 | name = Release; 461 | }; 462 | /* End XCBuildConfiguration section */ 463 | 464 | /* Begin XCConfigurationList section */ 465 | 27DD68E11AE67F1000322D7E /* Build configuration list for PBXProject "VMTabbarCustomize" */ = { 466 | isa = XCConfigurationList; 467 | buildConfigurations = ( 468 | 27DD69071AE67F1100322D7E /* Debug */, 469 | 27DD69081AE67F1100322D7E /* Release */, 470 | ); 471 | defaultConfigurationIsVisible = 0; 472 | defaultConfigurationName = Release; 473 | }; 474 | 27DD69091AE67F1100322D7E /* Build configuration list for PBXNativeTarget "VMTabbarCustomize" */ = { 475 | isa = XCConfigurationList; 476 | buildConfigurations = ( 477 | 27DD690A1AE67F1100322D7E /* Debug */, 478 | 27DD690B1AE67F1100322D7E /* Release */, 479 | ); 480 | defaultConfigurationIsVisible = 0; 481 | }; 482 | 27DD690C1AE67F1100322D7E /* Build configuration list for PBXNativeTarget "VMTabbarCustomizeTests" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 27DD690D1AE67F1100322D7E /* Debug */, 486 | 27DD690E1AE67F1100322D7E /* Release */, 487 | ); 488 | defaultConfigurationIsVisible = 0; 489 | }; 490 | /* End XCConfigurationList section */ 491 | }; 492 | rootObject = 27DD68DE1AE67F1000322D7E /* Project object */; 493 | } 494 | -------------------------------------------------------------------------------- /VMTabbarCustomize.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /VMTabbarCustomize.xcodeproj/project.xcworkspace/xcshareddata/VMTabbarCustomize.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 9A126840-B7BE-4B16-A944-87282A027CA1 9 | IDESourceControlProjectName 10 | project 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | B0DDFB742D1D1EBECE59508A440E9FE8CEFCFC8B 14 | https://github.com/VuMai/VMTabbarCustomize.git 15 | 16 | IDESourceControlProjectPath 17 | VMTabbarCustomize.xcodeproj/project.xcworkspace 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | B0DDFB742D1D1EBECE59508A440E9FE8CEFCFC8B 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/VuMai/VMTabbarCustomize.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | B0DDFB742D1D1EBECE59508A440E9FE8CEFCFC8B 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | B0DDFB742D1D1EBECE59508A440E9FE8CEFCFC8B 36 | IDESourceControlWCCName 37 | VMTabbarCustomize 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /VMTabbarCustomize.xcodeproj/xcuserdata/vumai.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 24 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /VMTabbarCustomize.xcodeproj/xcuserdata/vumai.xcuserdatad/xcschemes/VMTabbarCustomize.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /VMTabbarCustomize.xcodeproj/xcuserdata/vumai.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | VMTabbarCustomize.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 27DD68E51AE67F1000322D7E 16 | 17 | primary 18 | 19 | 20 | 27DD68FE1AE67F1100322D7E 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /VMTabbarCustomize/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // VMTabbarCustomize 4 | // 5 | // Created by Vu Mai on 4/21/15. 6 | // Copyright (c) 2015 VuMai. 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 | -------------------------------------------------------------------------------- /VMTabbarCustomize/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // VMTabbarCustomize 4 | // 5 | // Created by Vu Mai on 4/21/15. 6 | // Copyright (c) 2015 VuMai. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /VMTabbarCustomize/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /VMTabbarCustomize/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /VMTabbarCustomize/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /VMTabbarCustomize/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | Vumai.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /VMTabbarCustomize/VMMain_ViewControler.h: -------------------------------------------------------------------------------- 1 | // 2 | // VMMain_ViewControler.h 3 | // VMTabbarCustomize 4 | // 5 | // Created by Vu Mai on 4/21/15. 6 | // Copyright (c) 2015 VuMai. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface VMMain_ViewControler : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /VMTabbarCustomize/VMMain_ViewControler.m: -------------------------------------------------------------------------------- 1 | // 2 | // VMMain_ViewControler.m 3 | // VMTabbarCustomize 4 | // 5 | // Created by Vu Mai on 4/21/15. 6 | // Copyright (c) 2015 VuMai. All rights reserved. 7 | // 8 | 9 | #import "VMMain_ViewControler.h" 10 | #import "VMTabBar.h" 11 | 12 | @interface VMMain_ViewControler () 13 | @property (nonatomic, strong) UIScrollView *scrollView; 14 | @end 15 | 16 | @implementation VMMain_ViewControler 17 | 18 | - (void)viewDidLoad { 19 | [super viewDidLoad]; 20 | [self initTabBar]; 21 | // Do any additional setup after loading the view. 22 | } 23 | 24 | - (void)didReceiveMemoryWarning { 25 | [super didReceiveMemoryWarning]; 26 | // Dispose of any resources that can be recreated. 27 | } 28 | 29 | - (void)initTabBar 30 | { 31 | VMTabBar *tabbar = [[VMTabBar alloc] initWithFrame:self.view.frame]; 32 | 33 | // make view when show for click tabbar 34 | NSMutableArray *arrColor = [NSMutableArray arrayWithObjects: 35 | rgb(52, 152, 219), 36 | rgb(26, 188, 156), 37 | rgb(231, 76, 60), 38 | rgb(230, 126, 34),nil]; 39 | NSMutableArray *arrView = [NSMutableArray array]; 40 | for (NSInteger i = 0; i<4; i++) { 41 | UIView *vi = [[UIView alloc] init]; 42 | [vi setBackgroundColor:(UIColor*)[arrColor objectAtIndex:i]]; 43 | [arrView addObject:vi]; 44 | } 45 | [tabbar addListOfViewWhenClickTabbar:arrView]; 46 | // add icon an for tab 47 | [tabbar addListOfItemImage:[NSMutableArray arrayWithObjects:@"icon_Summary.png",@"icon_Expences.png",@"icon_History.png",@"icon_setting.png", nil]]; 48 | [tabbar addListOfItemText:[NSMutableArray arrayWithObjects:@"Summary",@"Expences",@"History",@"Setting", nil]]; 49 | [tabbar setDelegate:self]; 50 | 51 | [tabbar iconTabBarWithNumber:4]; 52 | [tabbar selectTabBarValueWithTag:1]; 53 | [tabbar changeColorTabbarWithColor:[UIColor whiteColor]]; 54 | [self.view addSubview:tabbar]; 55 | } 56 | 57 | 58 | 59 | #pragma mark - Tabar delegate 60 | -(void)VMTabBar:(VMTabBar *)tabbar switchTabWithTag:(NSInteger)tag 61 | { 62 | NSLog(@"tag click: %li",(long)tag); 63 | } 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /VMTabbarCustomize/VMTabBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // VMTabBar.h 3 | // VMTabbarCustomize 4 | // 5 | // Created by Vu Mai on 4/21/15. 6 | // Copyright (c) 2015 VuMai. All rights reserved. 7 | // 8 | 9 | #import 10 | #define rgb(r,g,b) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:1] 11 | 12 | @protocol VMTabBarDelegate; 13 | @interface VMTabBar : UIView 14 | @property (nonatomic) id delegate; 15 | 16 | -(void)iconTabBarWithNumber:(NSInteger)num; 17 | -(void)setFontTabBar:(UIFont*)font; 18 | -(void)addListOfItemText:(NSMutableArray*)arr; 19 | -(void)addListOfItemImage:(NSMutableArray*)arr; 20 | -(void)selectTabBarValueWithTag:(NSInteger)tag; 21 | -(void)changeColorTabbarWithColor:(UIColor*)color; 22 | -(void)addListOfViewWhenClickTabbar:(NSMutableArray*)arr; 23 | @end 24 | 25 | @protocol VMTabBarDelegate 26 | 27 | @required 28 | -(void)VMTabBar:(VMTabBar*)tabbar switchTabWithTag:(NSInteger)tag; 29 | @end -------------------------------------------------------------------------------- /VMTabbarCustomize/VMTabBar.m: -------------------------------------------------------------------------------- 1 | // 2 | // VMTabBar.m 3 | // VMTabbarCustomize 4 | // 5 | // Created by Vu Mai on 4/21/15. 6 | // Copyright (c) 2015 VuMai. All rights reserved. 7 | // 8 | 9 | #import "VMTabBar.h" 10 | @interface VMTabBar() 11 | 12 | @property (nonatomic) NSMutableArray *listOfItemTabbar; 13 | @property (nonatomic) NSMutableArray *listOfItemImageTabbar; 14 | @property (nonatomic) NSMutableArray *listOfTextTabbar; 15 | @property (nonatomic) NSMutableArray *listOfTextItemTabbar; 16 | @property (nonatomic) NSMutableArray *listOfView; 17 | @property (nonatomic) NSMutableArray *listOfCenterOriginIcon; 18 | @property (nonatomic) NSMutableArray *listOfCenterOriginText; 19 | 20 | @property (nonatomic, strong) UIScrollView *scrollView; 21 | @property (nonatomic) UIFont *fontTabBar; 22 | 23 | @end 24 | 25 | @implementation VMTabBar 26 | 27 | -(id)initWithFrame:(CGRect)frame 28 | { 29 | self = [super initWithFrame:frame]; 30 | if (self) { 31 | 32 | } 33 | return self; 34 | } 35 | 36 | -(void)addListOfItemImage:(NSMutableArray*)arr 37 | { 38 | self.listOfItemImageTabbar = [NSMutableArray arrayWithArray:arr]; 39 | } 40 | 41 | -(void)addListOfItemText:(NSMutableArray*)arr 42 | { 43 | self.listOfTextTabbar = [NSMutableArray arrayWithArray:arr]; 44 | } 45 | 46 | -(void)addListOfViewWhenClickTabbar:(NSMutableArray*)arr 47 | { 48 | self.listOfView = [NSMutableArray arrayWithArray:arr]; 49 | } 50 | 51 | -(void)setFontTabBar:(UIFont*)font 52 | { 53 | self.fontTabBar = font; 54 | } 55 | 56 | -(void)initScrollViewWithNumOfView:(NSInteger)numOfView 57 | { 58 | self.scrollView = [[UIScrollView alloc] initWithFrame:self.bounds]; 59 | [self.scrollView setPagingEnabled:YES]; 60 | [self.scrollView setContentSize:CGSizeMake(CGRectGetWidth(self.bounds), CGRectGetHeight(self.bounds)*numOfView)]; 61 | [self.scrollView setUserInteractionEnabled:NO]; 62 | [self.scrollView setShowsHorizontalScrollIndicator:NO]; 63 | 64 | for (NSInteger i = 0; i 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 | -------------------------------------------------------------------------------- /VMTabbarCustomizeTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | Vumai.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /VMTabbarCustomizeTests/VMTabbarCustomizeTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // VMTabbarCustomizeTests.m 3 | // VMTabbarCustomizeTests 4 | // 5 | // Created by Vu Mai on 4/21/15. 6 | // Copyright (c) 2015 VuMai. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface VMTabbarCustomizeTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation VMTabbarCustomizeTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | --------------------------------------------------------------------------------