almost 5 years ago
There are different ways to declare Array in Swift. I will write few examples below:
let a : Array? = ["hello","hi"]
Now in above example this is a constant array. You cannot add/append an element in it.
Below both versions of declaring array are same
var a2 = Array<String>()
var a3 = [String]()
Example 3: This will declare an NSArray. Here you cannot add an element. And this array contains NSObjects.
var a3 = ["hello",12]
Example 4: This will declare a NSMutableArray. You can add elements in it similar to Objective c
var a3 =  as NSMutableArray
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2020 FindNerd.com. All rights reserved.
Sign up using