//按钮散落方向
typedef NS_ENUM(NSUInteger, PathDirection) {
PathDirectionLeft,
PathDirectionRight,
PathDirectionUP,
PathDirectionDown,
};
//将MCFireworksView粒子动画添加在button上
- (void)layoutSubviews {
[super layoutSubviews];
self.fireworksView.frame = self.bounds;
[self insertSubview:self.fireworksView atIndex:0];
}