原创 正則表達式

1.校驗密碼強度 密碼的強度必須是包含大小寫字母和數字的組合,不能使用特殊字符,長度在8-10之間。 ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$ 2.校驗中文 字符串僅能是中文。 1

原创 使用微博作爲第三方登陸 微博分享

#import "AppDelegate.h" #import "WeiboSDK.h" @interface AppDelegate ()<WeiboSDKDelegate> @end @i

原创 二維碼掃描,生成

二維碼掃描: #import "AVFViewController.h" #import <AVFoundation/AVFoundation.h> staticconst char *kScanQRCodeQueueNam

原创 按網絡情況 下載圖片

- setItem:(CustomItem *)item {     _item = item;     // 佔位圖片     UIImage *placeholder = [UIImage imageNamed:@"placeho

原创 加密 解密

#import "ViewController.h" #import "RSAEncryptor.h" @interface ViewController () @end @implementation View

原创 Quartz2d 畫圖

第一種:畫線 static void drawLine(void){     //獲取上下文     CGContextRef ctx=UIGraphicsGetCurrentContext();     //創建一個路徑  

原创 打開 關閉照明

#import <AVFoundation/AVFoundation.h> //Step2:設置捕獲會話;設置 AVCaptureSession 和 AVCaptureVideoPreviewLayer 成員 static co

原创 有關推送

#import "AppDelegate.h" #import "JPUSHService.h" #import <AdSupport/AdSupport.h> @interface AppDelegate ()

原创 兩個應用之間相互跳轉

一,兩個應用之間相互跳轉傳值: 1,相關配置 2,代碼調用 3,通過openURL跳轉原生應用的相關鏈接 http://blog.sina.com.cn/s/blog_7ea0400d0102uy01.html

原创 AliAPP 支付寶支付

#import "ViewController.h" #import "Order.h" #import <AlipaySDK/AlipaySDK.h> #import "MyPayHeader.h" #impo