UIView * homeButtonView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 25, 25)];
UIImageView * homeButtonImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 25, 25)];
homeButtonImageView.image = [UIImage imageNamed:@"icon_12"];
UIButton * homeButton = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 25, 25)];
homeButton.backgroundColor = [UIColor clearColor];
[homeButton addTarget:self action:@selector(tapRightItem) forControlEvents:UIControlEventTouchUpInside];
UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 10, 10)];
label.text = @"2";
label.textColor = [UIColor whiteColor];
label.backgroundColor=[UIColor redColor];
label.textAlignment = NSTextAlignmentCenter;
label.layer.cornerRadius=5;
label.layer.masksToBounds =YES;
label.font = [UIFont systemFontOfSize:KSCREEN_HEIGHT(11)];
[homeButton addSubview:label];]
[homeButtonView addSubview:homeButtonImageView];
[homeButtonView addSubview:homeButton];
UIBarButtonItem *homeButtonItem = [[UIBarButtonItem alloc]initWithCustomView:homeButtonView];
self.navigationItem.rightBarButtonItem=homeButtonItem;
