标签:style ar color os sp on bs ad as
#import <UIKit/UIKit.h>
@class ZBTabBar;
@protocol ZBTabBarDelegate <NSObject>
-(void)tabBar:(ZBTabBar *)tabBar didSelectButtonFrom:(int)from to:(int)to;
@end
@interface ZBTabBar : UIView
-(void)AddTabBarItemWithTabBarItem:(UITabBarItem *)item;
@property(nonatomic,weak)id<ZBTabBarDelegate> delegate;
@end
if ( [self.delegate respondsToSelector:@selector(tabBar:didSelectButtonFrom:to:)]) {
[self.delegate tabBar:self didSelectButtonFrom:self.tempButton.tag to:btn.tag];
}
标签:style ar color os sp on bs ad as
原文地址:http://www.cnblogs.com/zhibin/p/4121913.html