我试图自定义一个UITabBar。
我扩展了UITabBarItem,现在它有一个自定义的图片,但是我无法去掉圆角。
代码:
也许有人知道如何去掉图片周围的圆角矩形。谢谢提前。 Alex
我扩展了UITabBarItem,现在它有一个自定义的图片,但是我无法去掉圆角。
代码:
@interface CustomTabBarItem : UITabBarItem
{
UIImage *customHighlightedImage;
}
@property (nonatomic, retain) UIImage *customHighlightedImage;
@end
@implementation CustomTabBarItem
@synthesize customHighlightedImage;
- (void) dealloc
{
[customHighlightedImage release]; customHighlightedImage=nil;
[super dealloc];
}
-(UIImage *) selectedImage
{
return self.customHighlightedImage;
}
@end
也许有人知道如何去掉图片周围的圆角矩形。谢谢提前。 Alex