Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func sendbutton(_ sender: Any) {
- var numArray: Array<Any>
- numArray = [phonenumber.text!, phonenumber1.text!, phonenumber2.text!, phonenumber3.text!]
- let myColor = UIColor.red
- for num in numArray {
- if (num as AnyObject).hasPrefix("+") {
- print("Has + symbol")
- } else {
- print("Does Not Have Symbol")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement