Skip to content

dengfeng520/RPBannerView

Repository files navigation

RPBannerView

  • iOS 9.0+

  • Xcode 10.0+

  • pod V1.7.0+

  • license MIT

demo1 demo2 demo3

Adding RPBannerView to your project

CocoaPods is the recommended way to add RPBannerView to your project.

1、Add a pod entry for RPBannerView to your project Podfile

pod 'RPBannerView'

or

pod 'RPBannerView', :git => 'https://github.com/dengfeng520/RPBannerView'

2、Install the pod by running

pod install

Usage

#import "RPBannerView.h"

warningMode

[RPBannerView showWithMode:warningMode body:@"Something went wrong,please try again."];

If you need to add RPBannerView to the current View and display for 2 seconds:

[RPBannerView showWithMode:warningMode body:@"Something went wrong,please try again." isView:self.view isTime:2];

perfectionMode

[RPBannerView showWithMode:perfectionMode body:@"Read data completion." isView:self.view];

successMode

[RPBannerView showWithMode:successMode body:@"Load all data successfully." isView:self.view];