I need to make 4 buttons, which are arranged 2×2. And when we press anyone of them, they change places in a circle. How make this animation by NSTimer?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
What you can do is create a custom view, and use an NSTimer to call a function that will incrementally change the frames of the buttons, moving them in whatever fashion you want. The only thing is that most of that is already built into the already existing animation stuff.