CoreGraphics框架下都沒有UIImage+ImageEffects.h和UIImage+ImageEffects.m這兩個(gè)文件
一行代碼實(shí)現(xiàn)毛玻璃效果介紹 這里并 不 是 用到了UIVisualEffectView,畢竟iOS8.0之后才能使用。 而是。。在網(wǎng)上看見的一個(gè)分類,應(yīng)該是國外的Coder寫的吧。讓我想起了...
#import "RootViewController.h" #import#define KScreenWidth [[UIScreen mainScreen]bounds...
#import "AppDelegate.h" #import "RootViewController.h" @interface AppDelegate () @end @...
// 最下面的scrollView @property (nonatomic, strong) UIScrollView *scrollView; // 網(wǎng)址數(shù)組 @prop...
1.移除現(xiàn)有Ruby默認(rèn)源 gem sources --remove https://rubygems.org/ 2.使用新的源 gem sources -a https:/...
#importtypedef NS_ENUM(NSInteger, NetWorkStateType) { NetWorkStateUnKnow, // 未知網(wǎng)絡(luò) NetWo...
#import // 這個(gè)類是基于對(duì)AFNetWorking的一個(gè)二次封裝 // 之前我們請(qǐng)求的方式是用NSURLSession 現(xiàn)在我們請(qǐng)求的方式變成AFNetWorkin...
一 聲明方法 #import@interface MyLodingView : UIView + (void)showLoadingWithAfterDelay:(NSTim...
import <Foundation/Foundation.h> 一 聲明屬性和方法 // 請(qǐng)求數(shù)據(jù)成功之后進(jìn)行回調(diào) 返回NSData typedef void(^Fini...
一 、OC中單例的寫法:1.普通單例的寫法 2. 利用多線程來寫單例 #pragma mark --- 普通單例寫法---- + (Manager *)shareInstan...
import UIKit class ViewController: UIViewController { override func viewDidLoad() { sup...