您的位置:首页 > 其它

在消息tabBar上面添加小红点

2016-06-28 17:39 525 查看
-(void)viewWillAppear:(BOOL)animated{

    // 调用接口,在接口块中添加小红点

    // 小红点

    UIImageView *imageView = [[UIImageView
alloc]init];

    imageView.image = [UIImage
imageNamed:@"redPoint.png"];

    imageView.frame =
CGRectMake(40,
3, 7,
7);

    [self.tabBarController.tabBar
addSubview:imageView];

}

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  tabBar