Latest 1.0.0
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit


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]; = @"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.


Weibo: XueSeason


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": "",
    "social_media_url": "",
    "license": "MIT",
    "authors": {
        "XueSeason": "[email protected]"
    "source": {
        "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": [

Pin It on Pinterest

Share This