x,y是相对于_btn的,你用x、y = -半径试试
解决方案 »
- iphone 如何时时检查gprs数据流量
- 如何让ios7的表格边角为圆角
- -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
- 哪个大牛给个名片扫描demo
- TabBarController 的tabbar是空白的,但有切换效果
- ios avplayer使用问题
- CodeSign error: code signing is required for product type 'Application' in SDK '
- 请问使用黑苹果影响开发吗?
- 关于tableview,一个section,cell加载不同数据内容
- CoreBluetooth搜索蓝牙设备,很多名称为null,为什么设置里面的蓝牙可以搜到名字?
- 新手,请大家帮忙解答一下,不甚感激
- 请教 怎样调整 Tab Bar的 item 顺序, 请前辈指导下!
int radius = 100;
UIBezierPath *circlePath = [UIBezierPath bezierPathWithArcCenter:arcCenter radius:radius startAngle:DEGREES_TO_RADIANS(270)
endAngle:DEGREES_TO_RADIANS(-90)
clockwise:NO];CAKeyframeAnimation *orbit = [CAKeyframeAnimation animation];
orbit.keyPath = @"position";
orbit.path =circlePath.CGPath;
orbit.duration = 4;
orbit.repeatCount = HUGE_VALF;
orbit.calculationMode = kCAAnimationPaced;
orbit.rotationMode = kCAAnimationRotateAuto;
[_btn.layer addAnimation:orbit forKey:@"orbit"];
y = 160 - 100