Skip to content

A simple and lightweight view show information. Like Android's Toast!

License

Notifications You must be signed in to change notification settings

XueSeason/XSInfoView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XSInfoView

Travis CocoaPods CocoaPods CocoaPods CocoaPods

A simple and lightweight view show information.

How To Get Started

pod 'XSInfoView', '~> 1.0.0'
pod install

How To Use

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;

ShowCase

Communication

  • 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.

Author

XueSeason
Weibo: XueSeason

License

XSInfoView is released under the MIT license. See LICENSE for details.

About

A simple and lightweight view show information. Like Android's Toast!

Resources

License

Stars

Watchers

Forks

Packages

No packages published