WFFavoriteButton 0.0.2

WFFavoriteButton 0.0.2

测试测试过
Lang语言 Obj-CObjective C
许可证 MIT
发布最后发布2017年2月

jwfstars 维护。



  • Jiang Wenfan

不错的收藏按钮带弹出功能

screen_record~

用法

WFPopButton *buttonTrack = [[WFPopButton alloc] initWithStyle:WFPopButtonStyleTrack];
buttonTrack.frame = CGRectMake(100, 200, 60, 60);
[buttonTrack setImage:[UIImage imageNamed:@"heart"] forState:UIControlStateNormal];
[buttonTrack setTitle:@"track" forState:UIControlStateNormal];
[self.view addSubview:buttonTrack];

WFPopButton *buttonShake = [[WFPopButton alloc] initWithStyle:WFPopButtonStyleShake];
buttonShake.frame = CGRectMake(100, 300, 60, 60);
[buttonShake setImage:[UIImage imageNamed:@"heart_gray"] forState:UIControlStateNormal];
[buttonShake setImage:[UIImage imageNamed:@"heart"] forState:UIControlStateSelected];
[buttonShake setTitle:@"shake" forState:UIControlStateNormal];
[buttonShake addTarget:self action:@selector(onTapShakeButton:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:buttonShake];