[swift4] How to Make Array with separate by comma or specific string
How to Make Array with separate by comma or specific string, is below code
let str = "id,name" let info = str.components(separatedBy: ",") print(ifno) //[0]:id , [1]name
How to Make Array with separate by comma or specific string, is below code
let str = "id,name" let info = str.components(separatedBy: ",") print(ifno) //[0]:id , [1]name