摘要:
在计算机内存中,统一使用Unicode编码,当需要保存到硬盘或者需要传输的时候,就转换为UTF-8编码。Python对bytes类型的数据用带b前缀的单引号或双引号表示x = b'ABC' //每个字符占一个字节'ABC'.encode('ascii') b'ABC'.decode('ascii') 阅读全文
摘要:
@IBDesignable 可在第二视图中实时预览@IBInspectable 可编辑属性 阅读全文
摘要:
横竖9种组合,代表所有大小屏幕,在storyboard中可以把contrans与不同组合绑定,也就是说,可能横向有多一个约束,纵向就没了... 实现不同屏幕不同约束,这应该是sizeclass 的存在的意义 阅读全文
摘要:
必须的有4个(remote_enable 默认没开,所以必要),其它默认值一般可以xdebug.remote_enable=On; //这个是必须xdebug.remote_host=192.168.60.109;xdebug.remote_port=9000;xdebug.remote_handl... 阅读全文
摘要:
config.vm.synced_folder "/Users/anjun/www","/www", create:true, :owner => "www-data", :group => "www-data", :mount_options => ["dmode=775","fmode=664... 阅读全文
摘要:
https://developer.apple.com/library/iad/documentation/AppleApplications/Reference/SafariWebContent/Introduction/Introduction.html 阅读全文
摘要:
UIView.animateWithDuration(0.5, delay: 0.5, usingSpringWithDamping: 0.5, initialSpringVelocity: 0.0, options: [], animations: { self.loginButton.cent... 阅读全文
摘要:
..... IntmultiplyClosure = { (a: Int, b: Int) -> Int inreturn a * b }multiplyClosure = { (a, b) ina*b }multiplyClosure = {$0 * $1 }if you are using an... 阅读全文
摘要:
hasAmbiguousLayoutexerciseAmbiguityInLayout_autolayoutTracerecursiveDescription第一步:更新约束,可以被认为是一个“计量传递”。这发生于自下而上(从子视图到父视图),并准备设置视图frame所需要的布局信息第二步:布局,发... 阅读全文
摘要:
Options FollowSymLinksAllowOverride NoneOrder deny,allowAllow from all 阅读全文