Cocoa Touch and Swift tutorials

In this video tutorial I am going to share how to upload an image and display the upload progress using the UIProgressView. I am going to use UIImagePickerController to let user select one of the images on their device I will use NSMutableURLRequest to send HTTP POST request with image data to a server side PHP script…

Read More Image Upload with Progress Bar example in Swift

In this video I am going to show you a couple of different ways to dismiss keyboard. We will dismiss keyboard when: User taps on a button User taps on a Return key or Done button on a keyboard User taps on a view away from the TextField. Source code: import UIKitclass ViewController: UIViewController,UITextFieldDelegate {@IBOutlet weak…

Read More Dismiss keyboard example in Swift

In this video I am going to show you how to use Apple’s Reachability project to make your mobile application properly handle loss of Internet Connection. You can download Apple’s Reachability example application from this link: Apple Reachability. And you can download entire project I’ve created in my video from this link: Reachability example in Swift.  

Read More Make your App properly handle loss of Internet Connection

In this video tutorial I demonstrate how to create UIPageViewController in Swift. One of the ways UIPageViewController can be used is to create a little scroll through tutorial for your mobile application and in this video tutorial I am demonstrating just that. Source code to entire project can be downloaded from here: https://github.com/simplyi/UIPageVIewControllerExample

Read More UIPageViewController example in Swift

In this video tutorial I am showing how to customize UINavigationBar by: changing its background color (barTintColor) set UINavigationBar Title text tint color (NSForegroundColorAttributeName) set UINavigationBar background image change Back button tint color change Bar Button item tint color Source code: // Set navigation bar tint / background colour UINavigationBar.appearance().barTintColor = UIColor.redColor() // Set Navigation bar Title colour…

Read More Customize UINavigationBar appearance in Swift

In this video I demonstrate how to implement a feature that allows users of your mobile app to rearrange table cells. Users will be able to grab the table cell and drag and drop it at a different position in table view. Source code: import UIKitclass MyTableViewController: UITableViewController {var dataHolder:Array = [“One”,”Two”,”Three”] override func viewDidLoad()…

Read More UITableViewController rearrange or reorder table cells example in Swift

In this video I show you how to implement a feature that allows user to delete UITableViewCell. Source code: // // MyTableViewController.swift // MyTableCellDeleteExample import UIKit class MyTableViewController: UITableViewController { var dataHolder:Array = [“One”,”Two”,”Three”] override func viewDidLoad() { super.viewDidLoad() // Uncomment the following line to preserve selection between presentations // self.clearsSelectionOnViewWillAppear = false // Uncomment…

Read More UITableViewController delete table cell example in Swift

In this video I am showing you how to create custom user interface file with XIB in Xcode 6 and how to load it as a Subview programatically as well as using Main.storyboard. Source code of MyCustomView file: import UIKit @IBDesignable class MyCustomView: UIView { @IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var myImage: UIImageView!…

Read More Creating custom user interface files with XIB in Xcode 6 and Swift

In this video I am going to show you how to build lengthy user interface that does not fit into a view and needs to scroll. I am going to use Xcode visual editor only and will not be writing any code manually.

Read More UIScrollView example. Building lengthy user interface that doesn’t fit and needs to scroll.

In this video I am going to show you how to create a left side navigation menu which is also some times called “Navigation Drawer”. Navigation drawer is a very popular design pattern used in modern mobile apps and I am sure you have come across so many times. Navigation drawer is a panel that…

Read More Left side menu (Navigation Drawer) example with Swift