M13BadgeView
M13BadgeView copied to clipboard
初始化的时候指定的方向为什么不行啊
self.badgeView = [[M13BadgeView alloc]initWithFrame:CGRectMake(0, 0, 20, 20)]; // self.badgeView.hidesWhenZero = YES; [self.newsImageView addSubview:self.badgeView]; self.badgeView.horizontalAlignment = M13BadgeViewHorizontalAlignmentRight; self.badgeView.verticalAlignment = M13BadgeViewVerticalAlignmentBottom; self.badgeView.text = @"2"; self.badgeView.font = [UIFont systemFontOfSize:12.f];
方向不生效