封装版_小白点_类似于 AssistiveTouch 的漂浮按钮

时间:2019-06-03 05:02:32
【文件属性】:
文件名称:封装版_小白点_类似于 AssistiveTouch 的漂浮按钮
文件大小:133KB
文件格式:ZIP
更新时间:2019-06-03 05:02:32
小白点 Assistive 悬浮按钮 这个是小白点的高度封装,只需要在- (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];
【文件预览】:
小白点
----.git()
--------index(2KB)
--------hooks()
--------config(137B)
--------description(73B)
--------refs()
--------branches()
--------objects()
--------info()
--------HEAD(23B)
----.DS_Store(6KB)
----BinLivePopTests()
--------BinLivePopTests.m(863B)
--------Info.plist(741B)
----BinLivePop()
--------main.m(329B)
--------BPPopView.m(3KB)
--------BPPopView.h(188B)
--------HEXCMyUIButton.h(385B)
--------BPPopButton.h(242B)
--------AppDelegate.h(146B)
--------AppDelegate.m(3KB)
--------Base.lproj()
--------BPPopButton.m(2KB)
--------HMYAssistiveControl.m(8KB)
--------helloVCViewController.m(704B)
--------ViewController.h(81B)
--------Images.xcassets()
--------Info.plist(1KB)
--------HEXCMyUIButton.m(3KB)
--------HMYAssistiveControl.h(1KB)
--------ViewController.m(852B)
--------helloVCViewController.h(86B)
----BinLivePop.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(17KB)
--------xcuserdata()

网友评论