Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. @IBAction func sendbutton(_ sender: Any) {
  2.  
  3. var numArray: Array<Any>
  4.  
  5. numArray = [phonenumber.text!, phonenumber1.text!, phonenumber2.text!, phonenumber3.text!]
  6.  
  7. let myColor = UIColor.red
  8.  
  9. for num in numArray {
  10. if (num as AnyObject).hasPrefix("+") {
  11. print("Has + symbol")
  12.  
  13. } else {
  14. print("Does Not Have Symbol")
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement