Tag: app

Swift App Tutorial: SwiftStocks (Part II)

SwiftStocks Tutorial Part 2

In the first chapter of this series, we designed a model, created a mockup, and started a swift project, ending up with the first viewController -the tableView- with some hardcoded stocks and values.

In this second post, we are going to explain:

  1. How to create a Swift project (Part I)
  2. How to hide the status bar (Part I)
  3. How to use UITableView in Swift (Part I)
  4. How to use tuples in Swift
  5. How to use switch in Swift
  6. How to use  singleton pattern in Swift (Part II)
  7. How to use web services in Swift (Part II)
  8. How to use the NSNotificationCenter in Swift (Part II)
Read More

Swift App Tutorial: SwiftStocks (Part I)

SwiftStocks Tutorial Part 1
During this tutorial we are going to develop a simple Swift app. We will create and app with swift that will show the value of some stocks. The app will have the following functionalities:

  1. Show a table with different stocks and values
  2. Search for new stocks.
  3. Show an individual stock in detail.

What you will learn:

  1. How to create a Swift project (Part I)
  2. How to hide the status bar (Part I)
  3. How to use UITableView in Swift (Part I)
  4. How to use tuples in Swift 
  5. How to use switch in Swift
  6. How to use  singleton pattern in Swift (Part II)
  7. How to use web services in Swift (Part II)
  8. How to use the NSNotificationCenter in Swift (Part II)

In order to get the stock values, we will use Yahoo Finance API. Hope you enjoy this tutorial!

Read More