|
|
实用的shell命令
使用上一个命令的参数
!:n代表上一个命令的第n个参数
!$ 代表上一个命令的最后一个参数
Alt+.也可以试试
iOS Code Snippet
设置全局UINavigationBar和UITabBar风格
Objective-C Coding Guidelines In Chinese
Objective-C编码规范,内容来自苹果、谷歌的文档翻译,自己的编码经验和对其它资料的总结。
转自https://github.com/QianKaiLu/Objective-C-Coding-Guidelines-In-Chinese
##概要
Objective-C是一门面向对象的动态编程语言,主要用于编写iOS和Mac应用程序。关于Objective-C的编码规范,苹果和谷歌都已经有很好的总结:
本文主要整合了对上述文档的翻译、作者自己的编程经验和其他的相关资料,为公司总结出一份通用的编码规范。
Git常用命令
取消已经跟踪的文件(目录)
isKindOfClass 和 isMemberOfClass 区别
isKindOfClass
return
YESif the receiver is an instance of the specified class or an instance of any class that inherits from the specified class.
isMemberOfClass
return
YESif the receiver is an instance of the specified class.
参考:
retain、copy、assign、strong、weak区别
Delegate正确声明方式
@property (nonatomic, weak) id
@property (nonatomic, assign) id
当delegate所指向的对象(0xxxxxxx)已经销毁的时候
weak: delegate == nil
assign:还会指向那个地址(0xxxxxxx)
参考:
Whats the difference between ‘weak’ and ‘assign’ in delegate property declaration
Hello Amy
Hello Amy
今儿去买手机,路上注意安全。
SDWebImage cause error while using XCTest in XCode6.3
Got the solution finally. select info of the project then select Configuration select the dropdown Debug. From that list select your test target and change the None in Configurations Set Tab into Pods. Do the same in Release Tab also
参考:
AFNetworking Cause Error while using XCTest in Xcode5
CocoaPods’s wiki: multiple-targets may give you some advices