miniLV / Mnfloatbtn
Licence: mit
iOS全局悬浮按钮,显示 / 切换当前API环境与版本 ,掌握和测试撕逼主动权~
Stars: ✭ 168
Projects that are alternatives of or similar to Mnfloatbtn
TextInputLayout
The objective of this code is to guide you to create login screen with TextInputLayout in iOS app.
Stars: ✭ 30 (-82.14%)
Mutual labels: floating
Overlaycontainer
Non-intrusive iOS UI library to implement overlay based interfaces
Stars: ✭ 777 (+362.5%)
Mutual labels: floating
Jvfloatingdrawer
An easy to use floating drawer view controller.
Stars: ✭ 1,424 (+747.62%)
Mutual labels: floating
FTerm.nvim
🔥 No-nonsense floating terminal plugin for neovim 🔥
Stars: ✭ 353 (+110.12%)
Mutual labels: floating
SocialOrbitLayout
Kotlin based custom view to show floating objects that can be used for social apps.
Stars: ✭ 28 (-83.33%)
Mutual labels: floating
Coordinatormenu
The library creates a floating menu like the app momo, vtcpay, wepay
Stars: ✭ 160 (-4.76%)
Mutual labels: floating
Enfloatingview
🔥应用内悬浮窗,无需一切权限,适配所有ROM和厂商,no permission floating view.
Stars: ✭ 733 (+336.31%)
Mutual labels: floating
Hhfloatingview
An easy to use and setup floating view for your app. 🎡
Stars: ✭ 93 (-44.64%)
Mutual labels: floating
Icewm
A window manager designed for speed, usability, and consistency
Stars: ✭ 338 (+101.19%)
Mutual labels: floating
Musicalyoutube
A Youtube floating PIP player for Android.
Stars: ✭ 50 (-70.24%)
Mutual labels: floating
netlicensing.io
Labs64 NetLicensing - Innovative License Management Solution
Stars: ✭ 13 (-92.26%)
Mutual labels: floating
Easyfloat
🔥 EasyFloat:浮窗从未如此简单(Android可拖拽悬浮窗口,支持页面过滤、自定义动画,可设置单页面浮窗、前台浮窗、全局浮窗,浮窗权限按需自动申请...)
Stars: ✭ 2,201 (+1210.12%)
Mutual labels: floating
Settingscompat
特殊权限(Special Permissions)兼容库,悬浮窗权限(SYSTEM_ALERT_WINDOW)与系统设置修改权限(WRITE_SETTINGS)
Stars: ✭ 942 (+460.71%)
Mutual labels: floating
Rhsidebuttons
Library provides easy to implement variation of Android (Material Design) Floating Action Button for iOS. You can use it as your app small side menu. 🌶
Stars: ✭ 164 (-2.38%)
Mutual labels: floating
Magnetic
SpriteKit Floating Bubble Picker (inspired by Apple Music) 🧲
Stars: ✭ 1,252 (+645.24%)
Mutual labels: floating
MNFloatBtn
Installation
Manually
Just add the MNFloatBtn
folder to your project
CocoaPods
Use CocoaPods with Podfile:
pod 'MNFloatBtn'
github "miniLV/MNFloatBtn"
Usage
- The floating button is displayed in any case
[MNFloatBtn show];
- Display the floating button only in Debug mode (recommended)
[MNFloatBtn showDebugModeWithType:MNAssistiveTypeNone];
- remove floating button
[MNFloatBtn hidden];
- touch event (It is not recommended to use, there will be a function to switch the api environment.)
[MNFloatBtn sharedBtn].btnClick = ^(UIButton *sender) {
NSLog(@" btn.btnClick ~");
};
Advanced usage
- The current date is displayed by default
[[MNFloatBtn sharedBtn] setBuildShowDate:YES];
- Configure the api environment display
#define kAddress @"testapi.miniLV.com"
//#define kAddress @"devapi.miniLV.com"
//#define kAddress @"api.miniLV.com"
//Configure yourself - what api environment, what label to display
NSDictionary *envMap = @{
@"test":@"testapi.miniLV.com",
@"dev":@"devapi.miniLV.com",
@"pro":@"api.miniLV.com"
};
//Set different titles to be displayed in different environments, as well as the current Host
[[MNFloatBtn sharedBtn]setEnvironmentMap:envMap currentEnv:kAddress];
-
Updated after Version 2.3.0, built-in method for switching environment. (do not customize how to click the button ~)
/**Touch event - use'[MNFloatBtn sharedBtn].btnClick' If you don't need to Custom click event. ==> built-in method:click floating button ==> auto switch api enviroment. */ //Custom click event //[MNFloatBtn sharedBtn].btnClick = ^(UIButton *sender) { // NSLog(@" btn.btnClick ~"); //};
中文版使用说明
集成方法
1.CocoaPods : pod 'MNFloatBtn'
2.手动导入 : 拖入MNFloatBtn
文件夹
使用方法
- 导入头文件,
#import <MNFloatBtn/MNFloatBtn.h>
- 一行代码,显示悬浮按钮
- 任何情况都显示悬浮按钮
[MNFloatBtn show];
- 仅在Debug模式下显示悬浮按钮(推荐使用)
[MNFloatBtn showDebugModeWithType:MNAssistiveTypeNone];
- 移除悬浮按钮在界面上显示
[MNFloatBtn hidden];
- 按钮点击事件(推荐不要自定义,会有内置的切换环境功能)
[MNFloatBtn sharedBtn].btnClick = ^(UIButton *sender) {
NSLog(@" btn.btnClick ~");
};
进阶用法:
- 默认显示当前日期
[[MNFloatBtn sharedBtn] setBuildShowDate:YES];
- 配置api环境显示
#define kAddress @"testapi.miniLV.com"
//#define kAddress @"devapi.miniLV.com"
//#define kAddress @"api.miniLV.com"
//自己配置 - 什么api环境下,要显示什么标签
NSDictionary *envMap = @{
@"测试":@"testapi.miniLV.com",
@"开发":@"devapi.miniLV.com",
@"生产":@"api.miniLV.com"
};
//设置不同环境下,要展示的不同title,以及当前的Host
[[MNFloatBtn sharedBtn]setEnvironmentMap:envMap currentEnv:kAddress];
-
Version 2.3.0 之后更新,内置切换环境的方法(不自定义实现按钮的点击方法~)
/**点击事件 - 用'[MNFloatBtn sharedBtn].btnClick'触发 如果不需要自定义点击事件的话,可以不赋值. ==> 这样会实现内部的点击事件操作:点击按钮==>自动切换开发环境 */ //自定义点击事件 //[MNFloatBtn sharedBtn].btnClick = ^(UIButton *sender) { // NSLog(@" btn.btnClick ~"); //};
*如果你在天朝,可以看这篇中文博客 文章介绍
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].