A simple and lightweight view show information.
pod 'XSInfoView', '~> 1.0.0'
pod install
Easy to show infomation without image.
[XSInfoView showInfo:@"Hello World" onView:self.view];
Custom
XSInfoViewStyle *style = [[XSInfoViewStyle alloc] init];
style.info = @"200 Success";
style.image = [UIImage imageNamed:@"action_success"];
style.layoutStyle = XSInfoViewLayoutStyleHorizontal;
[XSInfoView showInfoWithStyle:style onView:self.view];
We can use XSInfoViewStyle
to setting our info view.
There are all property to setting:
@property (strong, nonatomic) UIColor *backgroundColor;
@property (strong, nonatomic) UIImage *image;
@property (assign, nonatomic) CGSize imageSize;
@property (strong, nonatomic) NSString *info;
@property (assign, nonatomic) CGFloat fontSize;
@property (strong, nonatomic) UIColor *textColor;
@property (assign, nonatomic) CGFloat maxLabelWidth;
@property (assign, nonatomic) NSInteger durationSeconds;
@property (assign, nonatomic) XSInfoViewLayoutStyle layoutStyle;
- If you found a bug, and can provide steps to reliably reproduce it, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request.
XSInfoView is released under the MIT license. See LICENSE for details.