Guest User

Untitled

a guest
Jan 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. [self dismissViewControllerAnimated:YES completion:^{
  2.  
  3. FlightRecorder *fl = [[FlightRecorder alloc] init];
  4. [fl endBookmarkProcessWithBookmarkCollection: dict];
  5.  
  6. }
  7.  
  8. - (void)endBookmarkProcessWithBookmarkCollection: (NSDictionary *)dict {
  9.  
  10. NSString *compiledText = @"Random Airline";
  11.  
  12. NSString *string = [NSString stringWithFormat: @"nMiles: %.2fnFlight: %@nDate: %@", [[dict objectForKey: @"miles"] floatValue], compiledText, [[NSUserDefaults standardUserDefaults] objectForKey:@"tempD"]];
  13.  
  14. self.bkBookmarkAlertView = [[UIAlertView alloc] initWithTitle:@"Confirmation" message:string delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Add", nil];
  15.  
  16. [bkBookmarkAlertView show];
  17.  
  18. }
Add Comment
Please, Sign In to add comment