[![CI Status](http://img.shields.io/travis/Song Zhou/SZEasyTipView.svg?style=flat)](https://travis-ci.org/Song Zhou/SZEasyTipView)
This prject is line by line copy from EasyTipView
To run the example project, clone the repo, and run pod install
from the Example directory first.
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;
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.
iOS 8+
SZEasyTipView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SZEasyTipView"
Song Zhou, [email protected]
SZEasyTipView is available under the BSD license. See the LICENSE file for more info.