iOS Development
iOS Development Tips
Thursday, January 12, 2017
[iOS SDK] How to make 2 dimensional array in swift 3
let
colCount =
10
let
rowCount =
10
// Initial value is nil
var
stringArray : [[
String
?]] = [[
String
?]](repeating: [
String
?](repeating:
nil
, count:
rowCount
) , count:
colCount
);
// How to use
stringArray
[
1
][
1
] =
"Test"
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment