Advertisement
johnmahugu

tutorial 1 swift - intro

Jul 8th, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. Swift is a new programming language developed by Apple Inc for iOS and OS X development. Swift adopts the best of C and Objective-C, without the constraints of C compatibility.
  2.  
  3. Swift uses the same runtime as the existing Obj-C system on Mac OS and iOS which makes Swift programs run on many existing iOS 6 and OS X 10.8 platforms.
  4.  
  5. This tutorial is designed for software programmers with a need to understand the Swift programming language starting from scratch. This tutorial will give you enough understanding on Swift programming language from where you can take yourself to higher level of expertise.
  6.  
  7. Before proceeding with this tutorial, you should have a basic understanding of Computer Programming terminologies. A basic understanding of any of the programming languages will help you in understanding the Swift programming concepts and move fast on the learning track.
  8.  
  9. For most of the examples given in this tutorial you will find Try it option, so just make use of this option to execute your Swift programs at the spot and enjoy your learning.
  10.  
  11. Try following example using Try it option available at the top right corner of the below sample code box:
  12.  
  13. import Cocoa
  14.  
  15. /* My first program in Swift */
  16. var myString = "Hello, World!"
  17.  
  18. println(myString)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement