Tutorial details

Swift Arrays | App Code for Sale | Preview

Swift Arrays | iOS Tutorial

In this tutorial i will be showing you how to understand and use Arrays in swift playground. Features: Swift Playground

Overview PAGE TOP

In this tutorial i will be showing you how to understand and use Arrays in swift playground.

Features:

  • Swift Playground

The Swift playground is a useful new addition to xcode where you can test and play around with code and break it down to see how it works.

What To Do? PAGE TOP

This tutorial takes place in the Playground.

  1. Open Xcode
  2. Go To File
  3. New Playground Project

Playground PAGE TOP

var Cars = ["Corsa", "Fiesta", "Clio", "Saxo",]
var Car1 = Cars[0]
var Car2 = Cars[1]
var Car3 = Cars[2]
var Car4 = Cars[3]
Cars.count
Cars.insert("Punto", atIndex: 4)
Cars.count
var Car5 = Cars[4]
for AllCars in Cars {
println(AllCars)
}

Reference PAGE TOP

http://www.geekylemon.com/swift-arrays

0 Comments Leave a comment

Please login in order to leave a comment.

Newest first
!

Sign-in to your Chupamobile Account.

The Easiest way to Launch your next App or Game.

Join Chupamobile and get instant access to thousands of ready made App and Game Templates.

Creating an account means you’re okay with Chupamobile’s Terms of Service and Privacy Policy.