Skip to content

an easy to use tip view for iOS, written in Objective-C

License

Notifications You must be signed in to change notification settings

songzhou21/SZEasyTipView

Repository files navigation

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, zhousong1993@gmail.com

License

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

About

an easy to use tip view for iOS, written in Objective-C

Resources

License

Stars

Watchers

Forks

Packages

No packages published