M13BadgeView
M13BadgeView copied to clipboard
A customizable badge for iOS applications.
Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior fixes #18
Xcode Recommend to Insert `self->`
I put a dot (Badge without text)on the corner of the button. And made it hide = YES. Set button target...action. When I touch the button, nothing happens while I...
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]; 方向不生效
The BOOL value autoSetCornerRadius is not initialized with YES and would never be set to YES within the code.
Hello, When i set the text or the font of my badge view the origin of my view change magically. Do you have an idea why it can happen? example:...