Added: 1 year ago
From: myiphoneadventure
Views: 7,605
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (17)

Sign In or Sign Up now to post a comment!
  • Thank U for your sharing.

  • @warachot You're welcome.

  • Great job, thanks especially for being very detailed with what the methods do...

  • @175726 Thank you.

  • No offense, looks great, but there are alot of easier ways to do this. I see this video is quite old, but just wanted to pop it in :)

    All u need is an Animation Block actually.

    Create an UIImageView, set that to bounds of screen.

    Then add an array of images to this --> loadingScreen.animationImages

    Then u can set duration, repeatcount etc to this loadingScreen (UIIMageView)

  • @jnoxt Thanks, I'll give your method a try the next time I need an animation. Yes, this is a bit old; at the time I seem to remember that I had some performance issues on HW (on the 3gs phone) using other (simpler) methods as well as some difficulty with the OS holding onto the memory for the frames of the animation after I had explicitly released them. At the time (back in the iOS 3.0 days) this was the only method that seemed to alleviate those problems. Don't recall the details, though ...

  • @myiphoneadventure UIImageView* loadingScreen = [[UIImageView alloc] initWithFrame:self.window.fram­e]; loadingScreen.animationImages = [NSArray arrayWithObjects:  [UIImage imageNamed:@"C64-1.png"], [UIImage imageNamed:@"C64-2.png"],nil]; loadingScreen.animationDuratio­n = 1.75; loadingScreen.animationRepeatC­ount = 3; [loadingScreen startAnimating]; [self.window addSubview:loadingScreen];

  • @jnoxt Awwh, yes...maybe this is not the case with iOS 4 & 5 (or maybe it is still the case), but I do remember that method, and that it did not scale well when using hundreds of images. I don't recall if performance was sub par, or resources weren't being properly release or what. Regardless, it might be time to reexamine that method for animating large sets of images; it is certainly much simpler.

  • I copied without comments in there, because it was too big :) That works just great ;)

    Good luck.

  • Nice tutorial man!

  • @AiMRisK Thanks.

  • why is it that ios applications can manage 60fps without stuttering while others stutter? is there a code to add to do that?

  • Comment removed

  • Hi, thanks for the great tut. I am a new to this (hence the tuts).

    - (void)viewDidLoad {

    says it's undeclared, and

    @end

    says it expected declaration or statement.

    Any thoughts , am I just not getting it. I went over everything a few times.

    Thanks

  • @TheAuldskool Not sure.

  • Thanks alot :-)

  • that was perfect ,,,

    thank you so much ...

    if you know how to make a comic book

    can you plzzzzzzzzzzzzzzzzz

    do it for me i have been trying for a long time

    thank you bro any way

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more