Skip to content

ayalherath/AyalBadgeView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

AyalBadgeView

AyalBadgeView can be applied, to any view. You can simply create object of AyalBadgeView with the parent view, which you want to display the badge number and the location of the badge number.

UIButton *buttionTwo = [UIButton buttonWithType:UIButtonTypeCustom];
buttionTwo.frame = CGRectMake(100, 150, 150, 40);
buttionTwo.backgroundColor = [UIColor grayColor];
[buttionTwo setTitle:@"My Button" forState:UIControlStateNormal];
[self.view addSubview:buttionTwo];

AyalBadgeView *ayalBadgeViewButton = [[AyalBadgeView alloc] initWithFrame:CGRectMake(140, -10, 16, 16) parentView:buttionTwo];
ayalBadgeViewButton.badgeNumber = 8;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published