Guest User

Untitled

a guest
Oct 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. // error alert simple
  2. [UIAlertView bk_showAlertViewWithTitle:@"エラー"
  3. message:@"入力内容に不備があります"
  4. cancelButtonTitle:@"戻る"
  5. otherButtonTitles:nil
  6. handler:nil];
  7.  
  8.  
  9.  
  10. // complitcate, get some information and do the delegate
  11. - (IBAction)didPush:(id)sender {
  12.  
  13. [Global playSound];
  14.  
  15. self.view.alpha = 1.0;
  16. [UIView animateWithDuration:0.5f delay:0.0f options:0 animations:^{
  17. self.view.alpha = 0.0;
  18. } completion:^(BOOL finished){
  19. //for the case Outsource Status
  20. OutsourceStatus *currentDatasource = dataSource[currentIndex];
  21. NSString *msg = [NSString stringWithFormat:@"選択された%i件のカルテのステータスを「%@」に変更します",countSelected,currentDatasource.name];
  22. [UIAlertView bk_showAlertViewWithTitle:nil message:msg cancelButtonTitle:@"キャンセル" otherButtonTitles:@[@"OK"] handler:^(UIAlertView *alertView, NSInteger buttonIndex) {
  23. if (buttonIndex == 1) {
  24. NSDictionary *dic;
  25. if(hiddenButtonTag == true){
  26. dic = [dataSource objectAtIndex:currentIndex];
  27. }else{
  28.  
  29. dic = [[NSDictionary alloc]initWithObjectsAndKeys:currentDatasource.outsource_status_id, @"status_id",currentDatasource.name,@"name",nil];
  30. }
  31. [delegate setParamFromDictionary:dic];
  32. [self.view removeFromSuperview];// remove current screen
  33. }
  34. }];
  35.  
  36. }];
  37. }
Add Comment
Please, Sign In to add comment