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 9240075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:07:36+00:00 2026-06-18T08:07:36+00:00

I have an application which displays the artwork from a chosen song selected from

  • 0

I have an application which displays the artwork from a chosen song selected from the iPod library and would like to make it spin constantly.

The code so far is as follows:

-(void)chosen:(MPMediaItem*)song withObject:(id)obj
{

    AppDelegate* app = (AppDelegate*)[[UIApplication sharedApplication] delegate];

    //ARTWORK STUFF
    UIImage *artworkImage = [UIImage imageNamed:@"noArtworkImage.png"] 

    MPMediaItemArtwork *artwork = [song valueForProperty: MPMediaItemPropertyArtwork];

    if (artwork)
    {
        artworkImage = [artwork imageWithSize: CGSizeMake (200, 200) ];
    }
    [app.viewController.artworkImage1 setImage:artworkImage];
}
  • 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-18T08:07:36+00:00Added an answer on June 18, 2026 at 8:07 am

    Use Quartz Core Framework. This is untested but I imagine it should work in theory.

    #import <QuartzCore/QuartzCore.h>
    
    CABasicAnimation *fullRotation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
    fullRotation.fromValue = [NSNumber numberWithFloat:0];
    fullRotation.toValue = [NSNumber numberWithFloat:((360*M_PI)/180)];
    fullRotation.duration = 6;
    fullRotation.repeatCount = 1e100f;
    [app.viewController.artworkImage1.layer addAnimation:fullRotation forKey:@"360"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create a 'shell' phonegap application which displays content from another
I have a silverlight application which reads data from a db and displays them
I would like to write a rather simple content application which displays a list
I have an application which displays html file from assets folder. Now the issue
I have a Application on a PC which displays time-information for a mp3 song
I have developed an application which displays Hebrew strings that are retrived from a
I have an Application which displays a Chart, which is filled with data from
I have an application which displays properties dialogs for various GUI-accessible objects. Because there
I have an XBAP WPF application which displays various pages inside of a Frame.
Hi All, I have a web-view in my application which displays some text with

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.