Duh...

I set the button alphas to 0 before animating them back. I can't believe I 
looked at those lines of code so many times and didn't realize what the problem 
was. Simply removing those 3 lines makes the code work as intended.

Sorry about the noise.
WT

- (void) showNotesView: (BOOL) show animated: (BOOL) animated;
{
  notesVisible = show;

  self.view.userInteractionEnabled = NO;

  self.btn3.alpha = 0.0f;   // These 3 lines are fine (but not needed) when
  self.btn1.alpha = 0.0f;   // show == YES but cause the problem I was seeing
  self.btn0.alpha = 0.0f;   // when show == NO

  self.btn3.enabled = NO;

  if (! animated)
  {
      [self showNotesView: show];
      self.view.userInteractionEnabled = YES;
  }
  else
  {
      [UIView animateWithDuration: 3.0f
                       animations:
                       ^(void)
                       { [self showNotesView: show]; }
                       completion:
                       ^(BOOL finished)
                       { self.view.userInteractionEnabled = YES; }
       ];
  }
}
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to