Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 2.14 KB

README.md

File metadata and controls

63 lines (41 loc) · 2.14 KB

SZEasyTipView

[![CI Status](http://img.shields.io/travis/Song Zhou/SZEasyTipView.svg?style=flat)](https://travis-ci.org/Song Zhou/SZEasyTipView) Version License Platform

Disclaimer

This prject is line by line copy from EasyTipView

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

main_screen

Usage

instantiate a object using this method:

- (instancetype)initWithText:(NSString *)text config:(SZConfig * __nullable)config delegate:(id<SZEasyTipViewDelegate> __nullable)delegate;

and present it in specific superview, or pass nil(will presented in rootView)

- (void)showForView:(UIView *)view withinSuperView:(UIView * __nullable)superView animated:(BOOL)animated;

if you want attach to UIBarItem subclass, using this method:

- (void)showForItem:(UIBarItem *)item withinSuperView:(UIView * __nullable)superView animated:(BOOL)animated;

or you can just present a tipView without explict instantiate one.

+ (void)showForView:(UIView *)view withinSuperView:(UIView * __nullable)superView text:(NSString *)text config:(SZConfig * __nullable)config delegate:(id<SZEasyTipViewDelegate> __nullable)delegate animated:(BOOL)animated;

config

you can config apperance and animation of the tip view using SZConfig, pass nil will use default config. For more information, please reference to SZConfig Class.

Requirements

iOS 8+

Installation

SZEasyTipView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SZEasyTipView"

Author

Song Zhou, [email protected]

License

SZEasyTipView is available under the BSD license. See the LICENSE file for more info.