ios添加全局悬浮按钮_GitHub - pengchengzhang/MNFloatBtn: iOS全局悬浮按钮,显示 / 切换当前API环境与版本 ,掌握和测试撕逼主动权~...

MNFloatBtn是一款适用于iOS的全局悬浮按钮库,可用于显示和切换API环境。安装方式包括手动添加和使用CocoaPods。通过简单调用方法,可以实现在任何情况下显示或仅在Debug模式下显示悬浮按钮,以及移除按钮。进阶功能包括自定义显示内容和点击事件,支持内置的API环境切换功能。
摘要由CSDN通过智能技术生成

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 =

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值