diff --git a/TBTabBar.m b/TBTabBar.m index f6e2d6b..660bc24 100644 --- a/TBTabBar.m +++ b/TBTabBar.m @@ -71,10 +71,13 @@ UIButton *b = [UIButton buttonWithType:UIButtonTypeCustom]; b.frame = CGRectMake(buttonX, 2, buttonSize + extra, 38); UIImage *tabBarButtonBackground = [[UIImage imageNamed:@"tabBarButtonBackground"] stretchableImageWithLeftCapWidth:1 topCapHeight:0]; + UIImage *tabBarButtonBackgroundHighlighted = [[UIImage imageNamed:@"tabBarButtonBackgroundHighlighted"] stretchableImageWithLeftCapWidth:1 topCapHeight:0]; [b setImage:[info icon] forState:UIControlStateNormal]; [b setImage:[info highlightedIcon] forState:UIControlStateHighlighted]; [b setImage:[info highlightedIcon] forState:UIControlStateSelected]; [b setBackgroundImage:tabBarButtonBackground forState:UIControlStateNormal]; + [b setBackgroundImage:tabBarButtonBackgroundHighlighted forState:UIControlStateHighlighted]; + [b setBackgroundImage:tabBarButtonBackgroundHighlighted forState:UIControlStateSelected]; [b addTarget:self action:@selector(touchDownForButton:) forControlEvents:UIControlEventTouchDown]; [b addTarget:self action:@selector(touchUpForButton:) forControlEvents:UIControlEventTouchUpInside]; diff --git a/TweetBotTabBar.xcodeproj/project.pbxproj b/TweetBotTabBar.xcodeproj/project.pbxproj index 7260454..3605ff9 100644 --- a/TweetBotTabBar.xcodeproj/project.pbxproj +++ b/TweetBotTabBar.xcodeproj/project.pbxproj @@ -50,6 +50,8 @@ E6F3962713BA366B00DF98A9 /* mentionsIcon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3962313BA366A00DF98A9 /* mentionsIcon@2x.png */; }; E6F3962813BA366B00DF98A9 /* mentionsIconHighlighted.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3962413BA366B00DF98A9 /* mentionsIconHighlighted.png */; }; E6F3962913BA366B00DF98A9 /* mentionsIconHighlighted@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3962513BA366B00DF98A9 /* mentionsIconHighlighted@2x.png */; }; + EF94DEA6159A638600406976 /* tabBarButtonBackgroundHighlighted.png in Resources */ = {isa = PBXBuildFile; fileRef = EF94DEA4159A638600406976 /* tabBarButtonBackgroundHighlighted.png */; }; + EF94DEA7159A638600406976 /* tabBarButtonBackgroundHighlighted@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = EF94DEA5159A638600406976 /* tabBarButtonBackgroundHighlighted@2x.png */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -106,6 +108,8 @@ E6F3962313BA366A00DF98A9 /* mentionsIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mentionsIcon@2x.png"; sourceTree = ""; }; E6F3962413BA366B00DF98A9 /* mentionsIconHighlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mentionsIconHighlighted.png; sourceTree = ""; }; E6F3962513BA366B00DF98A9 /* mentionsIconHighlighted@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mentionsIconHighlighted@2x.png"; sourceTree = ""; }; + EF94DEA4159A638600406976 /* tabBarButtonBackgroundHighlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tabBarButtonBackgroundHighlighted.png; sourceTree = ""; }; + EF94DEA5159A638600406976 /* tabBarButtonBackgroundHighlighted@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tabBarButtonBackgroundHighlighted@2x.png"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -191,6 +195,8 @@ E6F3957813B9963B00DF98A9 /* Resources */ = { isa = PBXGroup; children = ( + EF94DEA4159A638600406976 /* tabBarButtonBackgroundHighlighted.png */, + EF94DEA5159A638600406976 /* tabBarButtonBackgroundHighlighted@2x.png */, E6F3962213BA366A00DF98A9 /* mentionsIcon.png */, E6F3962313BA366A00DF98A9 /* mentionsIcon@2x.png */, E6F3962413BA366B00DF98A9 /* mentionsIconHighlighted.png */, @@ -303,6 +309,8 @@ E6F3962813BA366B00DF98A9 /* mentionsIconHighlighted.png in Resources */, E6F3962913BA366B00DF98A9 /* mentionsIconHighlighted@2x.png in Resources */, E6B0C67B142AD90100F24D54 /* LICENSE in Resources */, + EF94DEA6159A638600406976 /* tabBarButtonBackgroundHighlighted.png in Resources */, + EF94DEA7159A638600406976 /* tabBarButtonBackgroundHighlighted@2x.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/TweetBotTabBar.xcodeproj/project.xcworkspace/xcuserdata/zhenia.xcuserdatad/UserInterfaceState.xcuserstate b/TweetBotTabBar.xcodeproj/project.xcworkspace/xcuserdata/zhenia.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..d55e4ad Binary files /dev/null and b/TweetBotTabBar.xcodeproj/project.xcworkspace/xcuserdata/zhenia.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/TweetBotTabBar.xcodeproj/xcuserdata/zhenia.xcuserdatad/xcschemes/TweetBotTabBar.xcscheme b/TweetBotTabBar.xcodeproj/xcuserdata/zhenia.xcuserdatad/xcschemes/TweetBotTabBar.xcscheme new file mode 100644 index 0000000..ace21e9 --- /dev/null +++ b/TweetBotTabBar.xcodeproj/xcuserdata/zhenia.xcuserdatad/xcschemes/TweetBotTabBar.xcscheme @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TweetBotTabBar.xcodeproj/xcuserdata/zhenia.xcuserdatad/xcschemes/xcschememanagement.plist b/TweetBotTabBar.xcodeproj/xcuserdata/zhenia.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..52a069d --- /dev/null +++ b/TweetBotTabBar.xcodeproj/xcuserdata/zhenia.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + TweetBotTabBar.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + E6F3953A13B989B100DF98A9 + + primary + + + + + diff --git a/tabBarButtonBackgroundHighlighted.png b/tabBarButtonBackgroundHighlighted.png new file mode 100644 index 0000000..c058976 Binary files /dev/null and b/tabBarButtonBackgroundHighlighted.png differ diff --git a/tabBarButtonBackgroundHighlighted@2x.png b/tabBarButtonBackgroundHighlighted@2x.png new file mode 100644 index 0000000..e9f62a4 Binary files /dev/null and b/tabBarButtonBackgroundHighlighted@2x.png differ