UIAlertController

- (void)tapSalePrice {spa

    // 修改销售金额3d

    UIAlertController *alertCtrl = [UIAlertController alertControllerWithTitle:@"修改销售价格" message:nil preferredStyle:UIAlertControllerStyleAlert];orm

    [alertCtrl addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {it

        textField.placeholder = @"请输入销售价格";io

        textField.textColor = [UIColor blueColor];date

        textField.clearButtonMode = UITextFieldViewModeWhileEditing;im

        textField.borderStyle = UITextBorderStyleNone;margin

        textField.layer.borderColor = [UIColor whiteColor].CGColor;top

        

    }];animate

    [alertCtrl addAction:[UIAlertAction actionWithTitle:@"肯定" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {

        NSArray * textfields = alertCtrl.textFields;

        UITextField *textf = textfields[0];

        _editSalePri  = textf.text;

        NSLog(@"%@", _editSalePri);

        if (_editSalePri || _editSaleAmout) {

            [self updateSalesData];

        }

        

    }]];

    [self presentViewController:alertCtrl animated:YES completion:nil];

}

相关文章
相关标签/搜索