To run the example project, clone the repo, and run pod install
from the Example directory first.
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];
Xi Zhang, chaucyzhang@gmail.com