本文主要是介绍MMActionSheet介绍(自定义的UIActionSheet弹出框组件),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Introduction
MMActionSheet 是一个简单的弹出选择框,使用纯swift编写,类似于微信的actionsheet
MMActionSheet is an simple pop-up selection box(ActionSheet) written in pure Swift. Similar to the wechat actionsheet
Rquirements
- iOS 8.0+
- swift 4.0+
Installation
Swift Package Manager
To install with Swift Package Manager, add this package to your project’s ‘Swift Packages’ section. Or add the following line to your Package.swift:
.package(url: "https://github.com/MinMao-Hub/MMActionSheet.git", from: "2.0")
Install with Cocoapods
-
To install MMActionSheet using CocoaPods, integrate it in your existing Podfile, or create a new Podfile:
platform :ios, '8.0' use_frameworks!target 'MyApp' dopod 'MMActionSheet', '~> 2.0' end
-
Execute command:
pod repo update master
pod install
-
Import MMActionSheet in you code
import MMActionSheet
Manual import
Just clone and add components dir to your project.
Example
desc | preview |
---|---|
Has Cancel buttons and Title 【有标题和取消按钮】 | |
Has a Cancel button but no Title 【无标题有取消按钮】 | |
这篇关于MMActionSheet介绍(自定义的UIActionSheet弹出框组件)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!