原创 [Cocopods]- [!] Error installing YYImage

pod install時出現錯誤,如下: 這個錯誤是因爲項目太大,tag資源文件太大。 修改Git的傳輸字節限制 git config --global http.postBuffer 524288000

原创 Xcode10 報錯 target xxx(project 'xxx')has copy command from ‘xxx/xxx’ to ''xxx/xxx.app/COPYING'解決辦法

Multiple commands produce '/Users/ww/Library/Developer/Xcode/DerivedData/Hospital-caqauxnwnsdysedjzdpczktzqotz/Build/Pro

原创 [iOS功能]- 生命週期

**視圖的生命週期** // 視圖加載完成 - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"%@ ---> %s", self.class, __func__); }

原创 [iOS功能]- UICollectionViewLayoutAttributes

UICollectionViewLayoutAttributes類的介紹### @property (nonatomic) CGRect frame @property (nonatomic) CGPoint center @propert

原创 [iOS功能]-視頻測試地址

// 20分鐘的視頻資源 _urlStr = @"http://220.249.115.46:18080/wav/Lovey_Dovey.mp4"; _urlStr = @"http://220.249.115.46:18080/wav

原创 npm安裝與配置 zsh: command not found: zsh: command not found: npm 等問題

zsh: command not found: zsh: command not found: npm 等問題 直接卸載 sudo npm uninstall npm -g sudo rm -rf /usr/local/lib/

原创 Cocoapod換源

CocoaPods 鏡像使用幫助 CocoaPods 是一個 Cocoa 和 Cocoa Touch 框架的依賴管理器,具體原理和 Homebrew 有點類似,都是從 GitHub 下載索引,然後根據索引下載依賴的源代碼。 對於舊版的

原创 解決git下載出現:Failed to connect to 127.0.0.1 port 1080: Connection refused拒絕連接錯誤

看着兩個就夠了! https://www.jianshu.com/p/f13ff94749bf https://blog.csdn.net/weixin_41010198/article/details/87929622

原创 [iOS功能]-總結2

1、設置UILabel行間距 NSMutableAttributedString* attrString = [[NSMutableAttributedString alloc] initWithString:label.text];

原创 [iOS功能]-總結

1、禁止手機睡眠 [UIApplication sharedApplication].idleTimerDisabled = YES; 2、隱藏某行cell - (CGFloat)tableView:(UITableView *)tab

原创 [iOS功能]- iOS關於服務器返回數據爲null---[NSNull length]

只要把.m文件拖進工程,啥也不需要做就可以了,想要詳細研究的可以去gitHub詳細看: https://github.com/nicklockwood/NullSafe // // NullSafe.m // // Version

原创 [iOS功能]- 從AFNetworking返回的Error中取出服務端返回的錯誤信息

#import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef void(^AppToolBlock)(id result); typedef void(^AppToo

原创 mac下載破解版軟件顯示已損壞!解決辦法!

sudo xattr -r -d com.apple.quarantine /Applications/StarUML.app

原创 [OC]-NSString超全總結

問題:NSString到底是不是字符串? NSString 是 OC中專門處理字符串的對象!提供了轉換大小寫,拼接字符串,lastPathComponent等方法! 一.NSString : 不可變字符串 1.字符串的創建 // 創

原创 [iOS功能]- iOS改變佔位符顏色

self.passTF.attributedPlaceholder = [self changePlaceholderWithTextField:self.passTF withString:@"請輸入密碼"]; - (NSMutable