我尝试使用 mknumberbadgeview 在 uiimage 上绘制徽章
http://www.claireware.com/blog_files/tag-mknumberbadgeview.html
但没有任何显示。
MKNumberBadgeView *badge = [[MKNumberBadgeView alloc] initWithFrame:CGRectMake(0,-5,50, 50)];
badge.value= 111;
badge.layer.cornerRadius = 3;
badge.layer.masksToBounds = YES;
badge.fillColor = [UIColor blueColor];
badge.hidden=true;
badge.tag = 41;
[myImageView addSubview:badge];
即使我改变
[myImageView addSubview:badge];
至
[self.view addSubview:badge];
什么都不显示
欢迎任何评论