openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 ...
分类:
编程语言 时间:
2018-10-31 15:42:36
阅读次数:
272
题目背景 “White shores, and beyond. A far green country under a swift sunrise.” 灰魔法师 题目描述 给出长度为n的序列a, 求有多少对数对 (i, j) (1 using namespace std; int read(){ i ...
分类:
其他好文 时间:
2018-10-27 14:52:36
阅读次数:
144
Special Kinds of Methods Methods associated with a type rather than an instance of a type must be marked with the static declaration modifier for enum ...
分类:
编程语言 时间:
2018-10-26 16:17:56
阅读次数:
206
方法一: 方法二:类方法直接实现 不定义类型,直接类型粘贴过去,修改起来不方便 使用的时候: 方法三:只定义 black,不定义回调方法 使用的时候 ...
分类:
编程语言 时间:
2018-10-26 14:20:43
阅读次数:
759
oc中的AssociationsManager在swift中也是可以实现的 使用方法请看下面一个例子 这里是给UIButton添加一个分类,在分类中给UIButton拓展快速添加点击事件的方法通过block回传,通过objc_setAssociatedObject将block保存,触发点击事件后,通 ...
分类:
移动开发 时间:
2018-10-25 19:41:56
阅读次数:
450
MBProgressHUD在开发中经常会用到,今天把MBProgressHUD的方法拓展了一下,更加方便使用 1.可以实现gif图片的展示,使用时请替换test.gif 2.可以控制是否允许交互,如果允许交互,那么在弹窗期间界面不可以点击 3.更便捷的控制succss和error的提示,使用时,请替 ...
分类:
移动开发 时间:
2018-10-25 19:35:31
阅读次数:
493
iOS精选源码 " 简单的个人中心页面 自定义导航栏并予以渐变动画 " " 一个近乎完整的可识别中国身份证信息的Demo 可自动快速... " " iOS可自定义图表库 PNChart " " 开源一款曾是运营级的B2B服务平台APP<云采> " " 使用ffmpeg解码最简iOS播放器 ...
分类:
移动开发 时间:
2018-10-25 16:25:54
阅读次数:
235
1. filter (过滤器):返回符合条件的一个数组 let arr = [1,5,6,7,10,0] //写法1 let arr1 = arr.filter { (item) -> Bool in return item % 2 == 0 ... ...
分类:
编程语言 时间:
2018-10-23 14:49:29
阅读次数:
145
首先我们了解一下Ceph系统中的寻址流程,如下图所示:本文部分参考来自http://www.csdn.net/article/2014-04-08/2819192-ceph-swift-on-openstack-m/2
分类:
其他好文 时间:
2018-10-17 18:32:49
阅读次数:
165
if #available(iOS 8.0, *){ if let url = URL(string: UIApplication.openSettingsURLString), UIApplication.shared.canOpenURL(url){ ... ...
分类:
移动开发 时间:
2018-10-17 12:14:22
阅读次数:
201