//
|
// Share.h
|
// BuWanVideo2.0
|
//
|
// Created by weikou on 16/8/19.
|
// Copyright © 2016年 com.yeshi.buwansheque.ios. All rights reserved.
|
//
|
|
#import <Foundation/Foundation.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
typedef void(^closure)();
|
|
@interface Share : NSObject
|
|
@property (nonatomic ,strong) NSString *shareTitle;
|
|
@property (nonatomic ,strong) UIImage *shareImage;
|
|
/**
|
判断是否是电子邮箱
|
|
@param candidate 传入需要验证的邮箱地址
|
|
@return Yes为是
|
*/
|
+(BOOL)isEmailAddress:(NSString*)candidate;
|
|
/**
|
输入框视图的晃动
|
|
@param sender 传入需要晃动的视图
|
@param info 提示信息
|
*/
|
+(void)ShakeView:(UITextField *)sender WithInfomation:(NSString *)info;
|
|
/**
|
按钮动态信息提示
|
|
@param buttton 需要动态显示信息的按钮
|
@param title 动态显示的文字
|
@param color 颜色
|
*/
|
+(void)animateButtonWithButton:(UIButton *)buttton WithTitle:(NSString *)title WithColor:(UIColor *)color;
|
|
/**
|
延时函数
|
|
@param delay 时间
|
@param Closure 操作
|
*/
|
+(void)delay:(double)delay withBlack:(closure)Closure;
|
@end
|