Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8876583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:14:43+00:00 2026-06-14T19:14:43+00:00

Please refer to the code for rotating the piechart when any sice is touched:

  • 0

Please refer to the code for rotating the piechart when any sice is touched:

-(void)pieChart:(CPTPieChart *)plot sliceWasSelectedAtRecordIndex:(NSUInteger)index{

[self rotatePieChart:plot];

}

-(void)rotatePieChart:(CPTPieChart *)plot {    

[CATransaction begin];
{
    CABasicAnimation *rotation = [CABasicAnimation animationWithKeyPath:@"transform"];
    CATransform3D transform = CATransform3DMakeRotation(-45, 0, 0, 1);
    rotation.toValue = [NSValue valueWithCATransform3D:transform];
    rotation.fillMode = kCAFillModeForwards;
    rotation.duration = 1.0f;
    rotation.cumulative=YES;
    rotation.removedOnCompletion = NO; 

    [plot addAnimation:rotation forKey:@"rotation"];

}
[CATransaction commit];

}

ON first Tap the piechart rotates but on subsequent taps nothing happens.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:14:44+00:00Added an answer on June 14, 2026 at 7:14 pm

    Instead of rotating the whole plot layer, animate only the startAngle property. I suspect the hit-detection code is getting confused by the rotated coordinate system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

HI all can anyone please refer me, the iphone image gallery source code? Any
Please refer my previous question for code sample Sockets: sometimes (rarely) packets are lost
Please refer to my code below. When optimization in IAR MSP430 compiler is set
Please refer to the code below, when I comment in either of the commented
Please refer to the below code Specialized function in non specialized Template class Is
Please refer to the following code: Filename: myclass.h @interface myclass:NSObject ... @end @interface NSObject(CategoryName)
Please refer to the Java code below: class Base{ Base(){ System.out.println(Base Constructor); method(); }
Please refer to http://jsfiddle.net/7FfMd/6/ run the code, then select E from the drop down,
Please refer the following code snippet. I want to use the std::bind for overloaded
Platfrom 3.5 .net.(c#) please refer me to code which converts ascii to bcd (c#).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.