1:IOS7.0 sizeWithFont:constrainedToSize:lineBreakMode:方法 iOS7 Deprecated
NSString類的sizeWithFont:constrainedToSize:lineBreakMode:方法,但是該方法已經被iOS7 Deprecated了,而iOS7新出了一個boudingRectWithSize:options:attributes:context方法來代替。
eg:
CGSize itemS = [text boundingRectWithSize:(CGSize){self.menuScroll.bounds.size.width, self.menuScroll.bounds.size.height} options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:15]} context:nil].size;
2:UITextInputMode currentInputMode is deprecated. 警告的解決
UITextView *textView = [[UITextView alloc] init]; UITextInputMode *currentInputMode = textView.textInputMode;
3:'strongify' macro redefined 警告的解決
這個宏聲明重復,刪一個
4:“Category is implementing a method which will also be implemented by its primary class”
在target的 build settings下 搜索other warning flags 然后給其添加 -Wno-objc-protocol-method-implementation
5:ios xcode 下 報出 ”xx“is missing from working copy 的問題
環境:git 在本機上刪除之后需要刪除服務端的,使用git命令刪除你刪除掉的文件夾
git rm nameOfMissingFile
