【文件属性】:
文件名称:封装好的类似于 AssistiveTouch 的漂浮按钮
文件大小:89KB
文件格式:ZIP
更新时间:2018-05-27 02:48:21
toch漂浮
这个是 飘窗的高度封装,只需要在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
函数中调用一个方法,即可实现飘窗,并采用block回调,方便点击按钮后自定义弹框,可以将自定义弹框放到window 上实现自己的方法。用起来简单,粗暴
eg:
//添加按钮
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
view.backgroundColor = [UIColor redColor];
UIView *blue = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
blue.backgroundColor = [UIColor blackColor];
[HMYAssistiveControl createOnMainWindowWithCollapsedView:view andExpandedView:nil andBlockClickData:^(CGPoint pointTouch){
NSLog(@"click me is block!~ ha ha ha,在这类 写出你要的弹框效果即可 = %@",NSStringFromCGPoint(pointTouch));
} andIsStickyEdge:YES];
//如果是YES 就是 自动贴近边沿 如果是NO 则只是拖到哪就是哪 哈哈~ 方便
【文件预览】:
飘框BinLivePop
----BinLivePop.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(17KB)
----.DS_Store(6KB)
----BinLivePopTests()
--------Info.plist(741B)
--------BinLivePopTests.m(863B)
----BinLivePop()
--------helloVCViewController.h(222B)
--------ViewController.m(981B)
--------Info.plist(1KB)
--------main.m(329B)
--------HMYAssistiveControl.m(8KB)
--------BPPopButton.h(242B)
--------BPPopView.h(188B)
--------HEXCMyUIButton.m(3KB)
--------helloVCViewController.m(840B)
--------Base.lproj()
--------Images.xcassets()
--------BPPopButton.m(2KB)
--------ViewController.h(210B)
--------AppDelegate.h(272B)
--------HMYAssistiveControl.h(3KB)
--------BPPopView.m(3KB)
--------HEXCMyUIButton.h(385B)
--------AppDelegate.m(3KB)
----.git()
--------info()
--------index(2KB)
--------objects()
--------HEAD(23B)
--------config(137B)
--------refs()
--------branches()
--------hooks()
--------description(73B)
网友评论
- 可以使用,感谢分享
- 哈哈,很好用,直接在项目里就可以用了,并且修改一下源码还能为我所用。
- 很好用,符合我的要求,谢谢
- 下的什么东西 我要的html 加js的 这玩意儿 根本看不了
- 下载学习下....
- 已下载 可以用
- 问题是 NSLog(@"click me is block!~ ha ha ha,在这类 写出你要的弹框效果即可 = %@",NSStringFromCGPoint(pointTouch));这里写什么代码 ???
- 挺好的悬浮