2016年2月5日

摘要: 在计算机内存中,统一使用Unicode编码,当需要保存到硬盘或者需要传输的时候,就转换为UTF-8编码。Python对bytes类型的数据用带b前缀的单引号或双引号表示x = b'ABC' //每个字符占一个字节'ABC'.encode('ascii') b'ABC'.decode('ascii') 阅读全文
posted @ 2016-02-05 17:25 anjuncc 阅读(202) 评论(0) 推荐(0) 编辑

2016年1月16日

摘要: @IBDesignable 可在第二视图中实时预览@IBInspectable 可编辑属性 阅读全文
posted @ 2016-01-16 17:53 anjuncc 阅读(75) 评论(0) 推荐(0) 编辑

2016年1月13日

摘要: 横竖9种组合,代表所有大小屏幕,在storyboard中可以把contrans与不同组合绑定,也就是说,可能横向有多一个约束,纵向就没了... 实现不同屏幕不同约束,这应该是sizeclass 的存在的意义 阅读全文
posted @ 2016-01-13 14:16 anjuncc 阅读(82) 评论(0) 推荐(0) 编辑

2016年1月3日

摘要: 必须的有4个(remote_enable 默认没开,所以必要),其它默认值一般可以xdebug.remote_enable=On; //这个是必须xdebug.remote_host=192.168.60.109;xdebug.remote_port=9000;xdebug.remote_handl... 阅读全文
posted @ 2016-01-03 12:35 anjuncc 阅读(103) 评论(0) 推荐(0) 编辑
摘要: config.vm.synced_folder "/Users/anjun/www","/www", create:true, :owner => "www-data", :group => "www-data", :mount_options => ["dmode=775","fmode=664... 阅读全文
posted @ 2016-01-03 11:09 anjuncc 阅读(73) 评论(0) 推荐(0) 编辑

2015年12月29日

摘要: https://developer.apple.com/library/iad/documentation/AppleApplications/Reference/SafariWebContent/Introduction/Introduction.html 阅读全文
posted @ 2015-12-29 14:37 anjuncc 阅读(122) 评论(0) 推荐(0) 编辑
摘要: UIView.animateWithDuration(0.5, delay: 0.5, usingSpringWithDamping: 0.5, initialSpringVelocity: 0.0, options: [], animations: { self.loginButton.cent... 阅读全文
posted @ 2015-12-29 12:40 anjuncc 阅读(123) 评论(0) 推荐(0) 编辑

2015年12月22日

摘要: ..... IntmultiplyClosure = { (a: Int, b: Int) -> Int inreturn a * b }multiplyClosure = { (a, b) ina*b }multiplyClosure = {$0 * $1 }if you are using an... 阅读全文
posted @ 2015-12-22 11:21 anjuncc 阅读(108) 评论(0) 推荐(0) 编辑

2015年12月21日

摘要: hasAmbiguousLayoutexerciseAmbiguityInLayout_autolayoutTracerecursiveDescription第一步:更新约束,可以被认为是一个“计量传递”。这发生于自下而上(从子视图到父视图),并准备设置视图frame所需要的布局信息第二步:布局,发... 阅读全文
posted @ 2015-12-21 13:55 anjuncc 阅读(104) 评论(0) 推荐(0) 编辑

2015年12月15日

摘要: Options FollowSymLinksAllowOverride NoneOrder deny,allowAllow from all 阅读全文
posted @ 2015-12-15 15:37 anjuncc 阅读(67) 评论(0) 推荐(0) 编辑

导航