Skip to content

dengfeng520/AppcpiToast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppcpiToast

--

AppcpiToast是一个自定义的iOS提示插件Class,支持iOS 9之后的版本

--

Adding AppcpiToast to your project

CocoaPods

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

  • 1、Add a pod entry for AppcpiToast to your project Podfile
pod 'AppcpiToast'

or

pod 'AppcpiToast', :git => 'https://github.com/dengfeng520/AppcpiToast'
  • 2、Install the pod by running pod install.

  • 3、 Include APPCPIToast wherever you need it with #import "AppcpiToastView+Category.h"

--

Usage

#import "AppcpiToastView+Category.h"
 AppcpiToastView *toastView = [AppcpiToastView showLTToastViewAnimation:self.view toastWithFrame:CGRectMake(10, 80, 120, 60) isAnimation:YES];
 toastView.backViewRadius = 5;
 toastView.titleChar = @"test test";

dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
        // time-consuming operation
        dispatch_async(dispatch_get_main_queue(), ^{
            
            [AppcpiToastView hiddenLTToastViewAnimation:self.view isAnimation:YES];
        });
    });