Skip to content

chaucyzhang/XZMessageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XZMessageView

CI Status Version License Platform

Example

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

Requirements

Installation

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

pod "XZMessageView"

##API Example:

##Initilize XZMessageView:

XZMessageView *messageView = [[XZMessageView alloc] initWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width, 44.0)];

##Display message:

[messageView displayErrorMsgViewWithText:@"msg"];

##Customize message:

you can also customize the message background color/font/font color/animation duration/message auto hide delay:

[messageView setBgColor:[UIColor redColor]];

[messageView setFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:17.0]];

[messageView setFontColor:[UIColor blueColor]];

[messageView setAnimationDuration:4.0];

[messageView setAutoHideDelay:10.0];

Author

Xi Zhang, chaucyzhang@gmail.com

License

XZMessageView is available under the MIT license. See the LICENSE file for more info.

XZMessageView

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published