All Projects → Nihility-Ming → Mbprogresshud Bwmextension

Nihility-Ming / Mbprogresshud Bwmextension

Licence: mit
Nihility-Ming to MBProgressHUD extension, easy to use.

Projects that are alternatives of or similar to Mbprogresshud Bwmextension

Yjcategories
Objective-C 常用分类集合,支持Cocoapods
Stars: ✭ 89 (+154.29%)
Mutual labels:  cocoapods, category
Uiimageview Letters
UIImageView category for using initials as a placeholder image, written in Objective-C. For a Swift implementation, see https://github.com/bachonk/InitialsImageView
Stars: ✭ 694 (+1882.86%)
Mutual labels:  cocoapods, category
Ios Category
iOS 工具分类整理
Stars: ✭ 30 (-14.29%)
Mutual labels:  cocoapods, category
Preloader.ophiuchus
Custom Label to apply animations on whole text or letters.
Stars: ✭ 880 (+2414.29%)
Mutual labels:  cocoapods
Parsel
Create complex parsers by combining simple ones with Parsel!
Stars: ✭ 21 (-40%)
Mutual labels:  cocoapods
Swiftlyext
SwiftlyExt is a collection of useful extensions for Swift 3 standard classes and types 🚀
Stars: ✭ 31 (-11.43%)
Mutual labels:  cocoapods
Mcplayerkit
MCPlayerKit is iOS Player, PlayerCoreType: AVPlayer can use play some video, IJKPlayer type can play video, Live ...
Stars: ✭ 34 (-2.86%)
Mutual labels:  cocoapods
Tkswitchercollection
An animation switch collection
Stars: ✭ 877 (+2405.71%)
Mutual labels:  cocoapods
Motion Animator Objc
A Motion Animator creates performant, interruptible iOS animations from motion specs.
Stars: ✭ 33 (-5.71%)
Mutual labels:  cocoapods
Awesome Hyperloop Titanium
A curated list of awesome links to resources around Axway's Hyperloop for Titanium. And more.
Stars: ✭ 30 (-14.29%)
Mutual labels:  cocoapods
Swiftyonboard
A swifty iOS framework that allows developers to create beautiful onboarding experiences.
Stars: ✭ 952 (+2620%)
Mutual labels:  cocoapods
Quiver
Validation, searching and filtering made easy for swift.
Stars: ✭ 27 (-22.86%)
Mutual labels:  cocoapods
Bfkit Swift
BFKit-Swift is a collection of useful classes, structs and extensions to develop Apps faster.
Stars: ✭ 963 (+2651.43%)
Mutual labels:  cocoapods
Weekdayssegmentedcontrol
A Custom segmented control to select weekdays for iOS
Stars: ✭ 14 (-60%)
Mutual labels:  cocoapods
Aaviewanimator
AAViewAnimator is a set of animations designed for UIView, UIButton, UIImageView with options in iOS, written in Swift.
Stars: ✭ 33 (-5.71%)
Mutual labels:  cocoapods
Request.swift
A tiny HTTP client written in swift. URLSession alternative
Stars: ✭ 14 (-60%)
Mutual labels:  cocoapods
Jiramobilekit
JIRA Mobile Kit a framework for raising bugs within your app including screenshots easily. JIRA Bug Raising written in Swift. iOS JIRA SDK Swift 3-4
Stars: ✭ 33 (-5.71%)
Mutual labels:  cocoapods
Avsqldebugger
A Simple Core Data Debugger that will look inside your apps DB
Stars: ✭ 30 (-14.29%)
Mutual labels:  cocoapods
Ctpanoramaview
A library that displays spherical or cylindrical panoramas with touch or motion based controls.
Stars: ✭ 951 (+2617.14%)
Mutual labels:  cocoapods
Scenekit Bezier Animations
Create animations over Bezier curves of any number of points
Stars: ✭ 35 (+0%)
Mutual labels:  cocoapods

MBProgressHUD+BWMExtension

GitHub license forks stars CocoaPods Release

Nihility-Ming to MBProgressHUD extension, easy to use.


MBProgressHUD+BWMExtension.h

/**
 *  @brief  Nihility-Ming对MBProgressHUD的扩展,方便使用。
 */
@interface MBProgressHUD (BWMExtension)

extern NSString * const kBWMMBProgressHUDMsgLoading;
extern NSString * const kBWMMBProgressHUDMsgLoadError;
extern NSString * const kBWMMBProgressHUDMsgLoadSuccessful;
extern NSString * const kBWMMBProgressHUDMsgNoMoreData;
extern NSTimeInterval kBWMMBProgressHUDHideTimeInterval;

typedef NS_ENUM(NSUInteger, BWMMBProgressHUDMsgType) {
    BWMMBProgressHUDMsgTypeSuccessful,
    BWMMBProgressHUDMsgTypeError,
    BWMMBProgressHUDMsgTypeWarning,
    BWMMBProgressHUDMsgTypeInfo
};

/**
 *  @brief  添加一个带菊花的HUD
 *
 *  @param view  目标view
 *  @param title 标题
 *
 *  @return MBProgressHUD
 */
+ (MBProgressHUD *)bwm_showHUDAddedTo:(UIView *)view title:(NSString *)title;
/** 添加一个带菊花的HUD */
+ (MBProgressHUD *)bwm_showHUDAddedTo:(UIView *)view
                                title:(NSString *)title
                             animated:(BOOL)animated;

/**
 *  @brief  隐藏指定的HUD
 *
 *  @param afterSecond 多少秒后
 */
- (void)bwm_hideAfter:(NSTimeInterval)afterSecond;
/** 隐藏指定的HUD */
- (void)bwm_hideWithTitle:(NSString *)title
                hideAfter:(NSTimeInterval)afterSecond;
/** 隐藏指定的HUD */
- (void)bwm_hideWithTitle:(NSString *)title
                hideAfter:(NSTimeInterval)afterSecond
                  msgType:(BWMMBProgressHUDMsgType)msgType;

/**
 *  @brief  显示一个自定的HUD
 *
 *  @param title       标题
 *  @param view        目标view
 *  @param afterSecond 持续时间
 *
 *  @return MBProgressHUD
 */
+ (MBProgressHUD *)bwm_showTitle:(NSString *)title
                      toView:(UIView *)view
                   hideAfter:(NSTimeInterval)afterSecond;
/** 显示一个自定的HUD */
+ (MBProgressHUD *)bwm_showTitle:(NSString *)title
                      toView:(UIView *)view
                   hideAfter:(NSTimeInterval)afterSecond
                     msgType:(BWMMBProgressHUDMsgType)msgType;

/**
 *  @brief  显示一个渐进式的HUD
 *
 *  @param view 目标view
 *
 *  @return MBProgressHUD
 */
+ (MBProgressHUD *)bwm_showDeterminateHUDTo:(UIView *)view;

/** 配置本扩展的默认参数 */
+ (void)bwm_setHideTimeInterval:(NSTimeInterval)second fontSize:(CGFloat)fontSize opacity:(CGFloat)opacity;

@end

Screenshots

CocoaPods

The recommended approach for installating MBProgressHUD+BWMExtension is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation. For best results, it is recommended that you install via CocoaPods >= 0.35.0 using Git >= 2.3.2 installed via Homebrew.

Install CocoaPods if not already available:

$ [sudo] gem install cocoapods
$ pod setup

Change to the directory of your Xcode project:

$ cd /path/to/MyProject
$ touch Podfile
$ edit Podfile

Edit your Podfile and add:

platform :ios, '7.0'
pod 'MBProgressHUD+BWMExtension', '~> 1.0.0'

Install into your Xcode project:

$ pod install

Open your project in Xcode from the .xcworkspace file (not the usual project file)

$ open MyProject.xcworkspace

Please note that if your installation fails, it may be because you are installing with a version of Git lower than CocoaPods is expecting. Please ensure that you are running Git >= 2.3.2 by executing git --version. You can get a full picture of the installation details by executing pod install --verbose.

Manual Install

All you need to do is drop Example/MBProgressHUD+BWMExtension files into your project, and add #include "MBProgressHUD+BWMExtension.h" to the top of classes that will use it.

Versions

1.0.1

Fixed bug of missing image files.

1.0.0

Build.

Usage

pod 'MBProgressHUD+BWMExtension'

or

All you need to do is drop Example/MBProgressHUD+BWMExtension files into your project, and add #include "MBProgressHUD+BWMExtension.h" to the top of classes that will use it.

License

MBProgressHUD+BWMExtension is available under the MIT license.

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].