Formatting Phone number in Swift

前端 未结 12 1880
天命终不由人
天命终不由人 2020-12-02 09:36

I\'m formatting my textfiled text once the user start typing the phone number into this format type 0 (555) 444 66 77 and it is working fine but once I get the

12条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-02 09:48

    var formattedPhone = phone
    if phone.count == 11 {
        let firstChar = phone[..

提交回复
热议问题