XTActivityView 使用 let xt = XTActivityView.init(frame: CGRectMake(10, 30, 40, 15)) // 个数 xt.numberOfRect = 4; // 颜色 xt.rectBackgroundColor = UIColor.orangeColor() // 间距 xt.space = 2; xt.startAnimation() xt.stopAnimation()