I know its noob question, i really search around before ask. But there is not exact answer of what i want to know. How we split string into the array without using Objectiv
In Swift 3.0 Use components(separatedBy:) on String than componentsSeparatedByString.
components(separatedBy:)
componentsSeparatedByString
Sharing code sample
let tempString = "1.Wash your hands\n2.Check you phone\n3.Click home button".components(separatedBy: "\n") print(tempString)