Skip to content

浮动图片,类似京东或者美团外卖的偷红包,其实最相似的是苹果的AssistiveTouch(小圆点),使用更加简单!更加轻量!

License

Notifications You must be signed in to change notification settings

wangrui460/FloatView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS 技术交流

我创建了一个 微信 iOS 技术交流群,欢迎小伙伴们加入一起交流学习~

可以加我微信我拉你进去(备注iOS),我的微信号 wr1204607318

FloatView

浮动图片

image

使用方式


创建方式一:
FloatView* floatView = [[FloatView alloc] initWithImage:[UIImage imageNamed:@"FloatBonus"]];
创建方式二:
FloatView* floatView = [FloatView new];
[floatView setImageWithName:@"FloatBonus"];

floatView.stayAlpha = 0.3;
floatView.stayMode = STAYMODE_RIGHT;
[floatView setTapActionWithBlock:^{
    NSLog(@"跳转到邀请好友界面");
}];
[self.view addSubview:floatView];

联系我

扫码回复1获取面试资料(持续更新)

About

浮动图片,类似京东或者美团外卖的偷红包,其实最相似的是苹果的AssistiveTouch(小圆点),使用更加简单!更加轻量!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published