daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -(IBAction)settings:(id)sender
  2. {
  3.     [mileagerate resignFirstResponder];
  4.  
  5.     [mainView bringSubviewToFront:mileageView];
  6.     mainView.hidden=TRUE;
  7.  
  8.     [UIView beginAnimations:@"Settings" context:nil];
  9.     [UIView setAnimationDuration:1.0];
  10.     [mainView setFrame:CGRectMake(0, 0, 320, 460)];
  11.     [UIView commitAnimations];
  12.     mileagerate.text = [[NSUserDefaults standardUserDefaults] valueForKey:@"savedstring"];
  13.  
  14.     mileageView.hidden=FALSE;
  15. }
  16.    
  17. [self.view endEditing:YES]; //resign current keyboard
  18.    
  19. [mileagerate resignFirstResponder];
  20.    
  21. if(mileagerate.isFirstResponder)
  22.         [mileagerate resignFirstResponder];
  23.    
  24. - (void)yourMethod
  25. {
  26.    [mileagerate resignFirstResponder];
  27. }
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