原创 iOS 設備唯一標識的獲取
英文原文:In iOS 7 and later, if you ask for the MAC address of an iOS device, the system returns the value 02:00:00:00:00:00
原创 iOS 獲取當前內存使用情況
//獲取當前設備可用內存及所佔內存的頭文件#import <sys/sysctl.h>#import <mach/mach.h> // 獲取當前設備可用內存(單位:MB)- (double)availableMemory{ vm_stat
原创 iOS 單例的創建方法
1.最基本的寫法+ (Singleton *)defaultSingleton{ static Singleton *singleton = nil; if (singleton == nil) { singlet