Latest 1.0.0
Homepage https://github.com/XueSeason/XSInfoView
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

[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

  1. Easy to show infomation without image.
[XSInfoView showInfo:@"Hello World" onView:self.view];
  1. If custom more?
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

XSInfoView
XSInfoView
XSInfoView

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.

Latest podspec

{
    "name": "XSInfoView",
    "version": "1.0.0",
    "summary": "A simple and lightweight view show information.",
    "homepage": "https://github.com/XueSeason/XSInfoView",
    "social_media_url": "http://weibo.com/smartseason",
    "license": "MIT",
    "authors": {
        "XueSeason": "[email protected]"
    },
    "source": {
        "git": "https://github.com/XueSeason/XSInfoView.git",
        "tag": "1.0.0"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "public_header_files": "XSInfoView/XSInfoView/XSInfoView.h",
    "source_files": "XSInfoView/XSInfoView/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This