最新项目中需要做一个类似小红书的侧滑抽屉效果,经过各种实验,发现MMDrawerController用着不错。
大致思路如下:
打开左边抽屉,按钮后左边push出一个新控制器,但是这个控制器仍然显示在左边的抽屉里的
1:用cocoapods pod MMDrawerController第三方
pod 'MMDrawerController'
2:在AppDelegate中 didFinishLa
1 、concat() 数组、字符串合并。
let a = [1,2,3]
let b = [4,5,6]
a.concat(b) // [1, 2, 3, 4, 5, 6]
let c = 'hello '
let d = 'world'
c.concat(d) // 'hello world'
2、 at() 数组、字符串、类数组中添加.at()方法at()支持正索引和负索引,获取其指定位