摘要:
// 单例+ (id)sharedInstance{ __strong static id sharedObject = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ sharedObject = [[self alloc] init]; }); return sharedObject;}dispatch_onceExecutes a block object once and only once for the lifetime of an appli... 阅读全文
摘要:
pod installAnalyzing dependencies[!] Pod::Executable pullerror: cannot open .git/FETCH_HEAD: Permission denied*************http://stackoverflow.com/questions/16049335/cocoapods-pod-install-permission-deniedI solve this problem by running the following command:sudo chown -R username.groupname ~/Libra 阅读全文