举例每行三个
多行按钮
let count = 7
var number = 0
for i in 0...count/3{
for j in 0...2{
if number == count{
break
}
let btn = uibutton(type: .custom)
....
self.view.addSubview(btn)
number += 1