I have two array
var arr1 = [NSArray]()
var arr2 = [String]()
And I want to convert NSArray into String Array
I am using
arr2 = arr1 as! [String]
But it giving me error :-
'NSString' is not a subtype of 'NSArray'
Is there any other method to convert?
Array<NSArray>(swift array of NSArray) , notNSArrayarr1is an array of arrays, not an array of strings. As an example, if the first element of arr1 contains an NSArray of [1, 2] and the second element is ["abc", "def"]. What do you want the string representation of this to be?