반지름 100의 원 (원 (중심이 120,120), 실제로 정사각형의 중심 즉 240 * 240)의 원주에 5 개의 버튼을 회전시키고 싶습니다. IS 가능하고 회전하고있는 버튼과 상호 작용을하는 것. ','공유 '지도 :원형 회전 동등한 거리를 유지하는 다섯 개의 버튼
난'
map.frame= CGRectMake([[fqx objectAtIndex:counter1]intValue],[[fqy objectAtIndex:counter1]intValue], 72, 37);
website.frame= CGRectMake([[fqx objectAtIndex:counter2]intValue],[[fqy objectAtIndex:counter2]intValue], 72, 37);
share.frame= CGRectMake([[fqx objectAtIndex:counter3]intValue],[[fqy objectAtIndex:counter3]intValue], 72, 37);
slideShow.frame= CGRectMake([[fqx objectAtIndex:counter4]intValue],[[fqy objectAtIndex:counter4]intValue], 72, 37);'
가 회전하지만 이상한 경로를 생성 .. 삼각 방법으로 .. (
x = round(cx + redious * cos(angl));
y = round(cy - redious * sin(angl));
NSString *X=[NSString stringWithFormat:@"%f",x];
[xval addObject:[NSString stringWithFormat:@"%@",X]];
NSString *Y=[NSString stringWithFormat:@"%f",y];
[yval addObject:[NSString stringWithFormat:@"%@",Y]];'
포인트를 계산하기 위해 '시도 , 'slideShow', 'website') ar 내 버튼 .. : P
"angl"방사형입니까? 그건 그래야만 해. radAngl = angl/180 * Pi. 또한 이전 좌표에 다음 반복을 적용하지 마십시오. 각도를 증가시키고 초기 위치를 사용하여 위치를 계산하십시오. – Krumelur
아니야, 내가 하나씩 감소하는 각도 야. – rptwsthi
@vladimir : 어떻게 그랬는지 말해 줄 수 있니?. :) – rptwsthi