Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // error alert simple
- [UIAlertView bk_showAlertViewWithTitle:@"エラー"
- message:@"入力内容に不備があります"
- cancelButtonTitle:@"戻る"
- otherButtonTitles:nil
- handler:nil];
- // complitcate, get some information and do the delegate
- - (IBAction)didPush:(id)sender {
- [Global playSound];
- self.view.alpha = 1.0;
- [UIView animateWithDuration:0.5f delay:0.0f options:0 animations:^{
- self.view.alpha = 0.0;
- } completion:^(BOOL finished){
- //for the case Outsource Status
- OutsourceStatus *currentDatasource = dataSource[currentIndex];
- NSString *msg = [NSString stringWithFormat:@"選択された%i件のカルテのステータスを「%@」に変更します",countSelected,currentDatasource.name];
- [UIAlertView bk_showAlertViewWithTitle:nil message:msg cancelButtonTitle:@"キャンセル" otherButtonTitles:@[@"OK"] handler:^(UIAlertView *alertView, NSInteger buttonIndex) {
- if (buttonIndex == 1) {
- NSDictionary *dic;
- if(hiddenButtonTag == true){
- dic = [dataSource objectAtIndex:currentIndex];
- }else{
- dic = [[NSDictionary alloc]initWithObjectsAndKeys:currentDatasource.outsource_status_id, @"status_id",currentDatasource.name,@"name",nil];
- }
- [delegate setParamFromDictionary:dic];
- [self.view removeFromSuperview];// remove current screen
- }
- }];
- }];
- }
Add Comment
Please, Sign In to add comment