Tag: Swift

  • DatePicker Demo in Swift

    In this short tutorial, we are going to see the steps required use DatePicker in a iOS / Swift project. This demo is done by adding the DatePicker controls to Interface Builder and not programmatically. Date Picker Mode Date Picker control allow developers to specify the mode such as Date, Time, Date and Time and…

  • TableView Demo in Swift

    In this tutorial, we will see some of the common UITableView operations such as Adding, Updating, Deleting and Moving records using Swift. Let us start with a TableView placed over a ViewController instead of using UITableViewController. By this way you will learn lot more about the functionality of UITableView. Add a new file and select…

  • Swift – Beginners Tutorial

    Swift is the latest programming language released by Apple for developing OS X and iOS apps. Best of C and Objective-C Adopts safe programming patterns and modern features Supports Playground, a tool for seeing the result immediately. Provides access to Cocoa libraries and can work in conjunction with Objective-C Combines Procedural and Object-Oriented programming. No…

  • payworks SDK integration in Swift

    payworks mPOS helps app developers to integrate their App with card reader. In this tutorial, we will see a sample app that integrates payworks mPOS using Swift. Download the source code from github Select New Project and choose Single View Application from the template. In the Project Options window, provide a product name and make…

  • Debugging Swift App in Xcode

    Any beginner iOS developer should be aware of the NSLog statement. This is quite frequently used to debug Objective-C programs. In Swift you can use println or print statement instead of NSLog to write the debug information to the console log. [code language=”swift”]var primeFlag:Bool = true println("input number is \(number)") if ((number == 2) ||…

  • Test Driven Development in Swift

    Here is a beginner tutorial on TDD in Swift by writing a program that checks for a prime number. Let us start by creating a new project, selecting template as Single View Application. Though we won’t be adding anything to the storyboard as we will focus only on the business logic. After creating the project,…

  • Integrating Stripe in Swift for iOS development

    Stripe is payment gateway that can be integrated with any website and mobile apps. In this tutorial we will see a quick and simple integration of Stripe in Swift for iOS development using Stripe documentation for iOS. This hands on tutorial will help you to familiarise yourself in Validating and creating token using Stripe IOS…

  • Quotes app – Simple page based application in Swift

    This is a very basic tutorial on how to create a simple page based app in Swift. We are going to use Page Based Application project template for displaying quotes in different pages.   Create Page-Based Application in Swift Click Xcode File menu, navigate to New and select Project from sub menu list. Select Page-Based…