Tôi hiện đang sử dụng UIAlertView này để làm một tên đăng nhập popup,UIAlertView: UIAlertViewStyleSecureTextInput: Numeric Bàn phím
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Restricted"
message:@"Please Enter Code to Enable Fields"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"Login"
, nil];
alert.alertViewStyle = UIAlertViewStyleSecureTextInput;
[alert show];
Tuy nhiên tôi muốn đầu vào văn bản để trở thành một bàn phím số thay cho bàn phím thông thường
Có cách nào dễ dàng để thực hiện việc này hay tôi phải xem xét việc tạo UIAleartView tùy chỉnh
add để bạn * .h tập tin –