News for hackers. Stuff that matters.
Re:The Instapaper Default.png dilemma by pkaler on Friday November 12, 2010 @02:19AM (#1896837)
Animate from Default.png to the first view:

  CABasicAnimation *a = [CABasicAnimation animationWithKeyPath:@"opacity"];
  a.duration = 3.0;
  a.fromValue = [NSNumber numberWithFloat:1.0];
  a.toValue = [NSNumber numberWithFloat:0.0];
  [theLayer addAnimation:a forKey:@"animateOpacity"];
Warning: tapped out that code off the top of my head and didn't put it through a compiler.
Re:The Instapaper Default.png dilemma by Xuzz on Friday November 12, 2010 @02:41AM (#1896873)
May I ask why you aren't using the UIView animations, which, for something like this, are easier (and don't need the extra CA power)?

For this case, do this (also uncompiled):

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:3.0];
    [defaultImageView setAlpha:0.0];
    [UIView commitAnimations];
Re:The Instapaper Default.png dilemma by pkaler on Friday November 12, 2010 @03:01AM (#1896911)
From the documentation: http://developer.apple.com/library/ios/#documentation/uikit/...

  Use of this method is discouraged in iOS 4.0 and later. You should use the block-based animation methods instead.
Frankly, it's because I can't remember the block based methods off the top of my head yet.
Re:The Instapaper Default.png dilemma by Xuzz on Monday November 15, 2010 @06:59PM (#1908460)
Interesting; I didn't know that. The block-based methods are, of course, better, but then you can't support iOS 3.x, which is still a pretty big percent of users.

Thanks!

Re:The Instapaper Default.png dilemma by rbritton on Friday November 12, 2010 @02:32AM (#1896855)
I've tried to do this with my own app before. I ran into difficulties doing it, if I remember right, because the orientation data is not fully initialized at the point in the launch sequence that you need it. It always reports the default orientation.