Author: Sergey Kargopolov

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 demonstrate how to programmatically add several images as subviews to UIScrollView in Swift. In my example I use UIImageView but it can be a custom user interface design ex. XIB file. To learn how to create your own reusable custom user interface files watch this video: Creating custom user interface files…

Read More UIScrollView Programmatically Add UIImageView as SubView. 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

In this example I am going to show you how to send an HTTP POST Request to a server side script written in PHP. I have prepared a very simple PHP script that accepts two parameters, puts them into an array and outputs response in a JSON format. <?php // Read request parameters $firstName= $_REQUEST[“firstName”];…

Read More Send HTTP POST Request example using Swift and PHP