项目作者: hanyanchao

项目描述 :
圆形 button,点击在圆形 button的外围弹出button
高级语言: Objective-C
项目地址: git://github.com/hanyanchao/button-.git
创建时间: 2015-12-10T08:12:59Z
项目社区:https://github.com/hanyanchao/button-

开源协议:

下载


button-

圆形 button,点击在圆形 button的外围弹出button

//动画目标位置

  1. CGFloat cosDegree = cosf(degree * (idx + .5));
  2. CGFloat sinDegree = sinf(degree * (idx + .5));
  3. CGPoint center = CGPointMake(originPoint.x + _d*cosDegree, originPoint.y - _d*sinDegree);