Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

UMETabBarItem selected image #1

Open
wants to merge 1 commit into from

1 participant

@srgtuszy

Added a method in which the developer can specify what image should be loaded when a UMETabBarItem is selected. Right now, only the default ones will show up when selected, and if there is a custom one, it won't show.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
16 UMEKit.xcodeproj/project.pbxproj
@@ -775,7 +775,11 @@
isa = PBXProject;
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "UMEKit" */;
compatibilityVersion = "Xcode 3.1";
+ developmentRegion = English;
hasScannedForEncodings = 1;
+ knownRegions = (
+ en,
+ );
mainGroup = 0867D691FE84028FC02AAC07 /* UMEKit */;
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
projectDirPath = "";
@@ -1003,7 +1007,7 @@
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Frameworks";
PRODUCT_NAME = UMEKit;
- SDKROOT = macosx10.5;
+ SDKROOT = macosx;
WRAPPER_EXTENSION = framework;
};
name = Debug;
@@ -1026,7 +1030,7 @@
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = build/Release;
PRODUCT_NAME = UMEKit;
- SDKROOT = macosx10.5;
+ SDKROOT = macosx;
WRAPPER_EXTENSION = framework;
};
name = Release;
@@ -1041,7 +1045,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
- SDKROOT = macosx10.6;
+ SDKROOT = macosx;
};
name = Debug;
};
@@ -1053,7 +1057,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
- SDKROOT = macosx10.6;
+ SDKROOT = macosx;
};
name = Release;
};
@@ -1080,7 +1084,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = DemoApp;
- SDKROOT = "";
+ SDKROOT = macosx;
};
name = Debug;
};
@@ -1106,7 +1110,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = DemoApp;
- SDKROOT = "";
+ SDKROOT = macosx;
ZERO_LINK = NO;
};
name = Release;
View
1  include/UMEKit/UMETabBarItem.h
@@ -37,6 +37,7 @@ typedef enum {
- (id)initWithTabBarSystemItem:(UMETabBarSystemItem)systemItem tag:(NSInteger)tag;
// designated initializer
- (id)initWithTitle:(NSString *)title image:(NSImage *)image tag:(NSInteger)tag;
+- (void)setSelectedImage:(NSImage *)image;
@property (nonatomic, copy) NSString *badgeValue; // default is nil
@end
View
6 src/UMETabBarItem.m
@@ -165,6 +165,12 @@ - (void)setImage:(NSImage *)img {
[button setImage:img];
}
+- (void)setSelectedImage:(NSImage *)image {
+
+ [button setAlternateImage:image];
+
+}
+
- (void)setTag:(NSInteger)aTag {
[super setTag:aTag];
Something went wrong with that request. Please try again.