daily pastebin goal
91%
SHARE
TWEET

Untitled

a guest Sep 12th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. Show and Hide view in xCode
  2. - (IBAction) slideDrawer: (id) sender;
  3.    
  4. - (IBAction) slideDrawer: (id) sender;
  5. {
  6.   CGFloat newX;
  7.   if (drawerIsShowing)
  8.     newX = kOffscreenX;
  9.   else
  10.     newX = kVisibleX;
  11.   [UIView animateWithDuration: .25
  12.   animations:
  13.   ^{
  14.     CGRect drawerFrame = drawerView.frame;
  15.     drawerFrame.origin.x = newX;
  16.     drawerView.frame = drawerFrame;
  17.   }
  18. drawerIsShowing = !drawerIsShowing;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top