Cocoa Touch and Swift tutorials

In this video tutorial I am going to share with you how to display user’s current location on a MapView programmatically as well as how to create MapView using Xcode Storyboard. We will also learn how to drop a Pin(MKPointAnnotation) at user’s current location and set MKPointAnnotation custom title. For your application to be able…

Read More MapView – Display User’s Current Location and Drop a Pin

Loading 1 or 3 images from server side into UITableView might not be a very challenging task. But when it comes to loading 50 or 100 images into a table view or collection view then things start becoming a little more complex. Especially when  user starts scrolling table view up and down very quickly.  When we…

Read More Display Large Collection of Images in UITableView with SDWebImage

In this video tutorial I am going to share with you how to change UITableViewCell separator left side spacing or how to hide table cell separator completely using Xcode and how to do it programmatically using Swift. If you are looking for a way to work with table cell separator programmatically only, below is a quick example. Otherwise, please watch…

Read More UITableViewCell Separator. Hide Separator or Change Left Side Spacing

In this blog post I am going to share with you how to add an international language support to your iOS App. In this blog post I will cover how to: Localize App’s Main.storyboard Localize App’s resources like images Localize user-facing that can be displayed to a user by your app. Localize App’s Main.storyboard In this video…

Read More iOS Localization: Add International Language Support To Your Swift App

In one of my previous blog posts I have shared with you how to send information forward from one view controller to another. If you have missed it please click on the link above to read it. In this blog post I am going to share with you how to pass data back to the…

Read More Pass Information Back to the Previous View Controller. Example in Swift.

To learn how to pass data back to the previous view controller read this blog post. To illustrate how to pass information forward from one view controller to another view controller in Swift, I will create a project with two views on the Main.storyboard. Let’s follow these steps: Create a new Xcode project if do…

Read More Pass Information Forward From One ViewController to Another in Swift

In this blog post I am going to show you how to create a very useful application template which uses NavigationDrawer(sometimes called as hamburger or side menu) and UITabBarController. This is how our application will look when we are done with this tutorial: Picture 1 As usual I will record a video tutorial and this…

Read More Mobile App with UITabBarController + Sliding Side Menus

In this blog post I am going to share with you how to create and customize UITextView. We will learn how to create UITextView using Xcode Interface Designer as well as how to create and customize UITextView programatically in our Swift code. Some of the things that I will cover in these four videos are:…

Read More UITextView and UITextViewDelegate example in Swift

In these two videos we will learn how to create UIDatePicker, read date selected by user and display selected date in different user friendly formats. We will also learn how to convert NSDate to milliseconds and back. Create UIDatePicker Convert NSDate into milliseconds and back Source code: import UIKit class ViewController: UIViewController { @IBOutlet weak…

Read More UIDatePicker example in Swift

In this video tutorial I am going to share with you how to create a UISegmentedControl with three tabs which will allow user to switch between three different list of elements: Private, Protected and Public. List of items displayed in each tab is loaded from a remote PHP script. I will include the source of PHP…

Read More UISegmentedControl with UITableView example in Swift. Part 2.

In this video tutorial I am going to share with you how to create a UISegmentedControl with three tabs which will allow user to switch between three different list of elements: Private, Protected and Public. The list of elements displayed in each tab is stored in an Array created within the same UIViewController. If you would…

Read More UISegmentedControl with UITableView example in Swift. Part 1.

In this video tutorial I am going to share with you how to create and use UICollectionView in Swift. Here is what we are going to cover: Create a new UIViewController with UICollectionView Implement custom UICollectionViewCell Load list of images by calling a server side PHP script which will return a JSON array of images Display…

Read More UICollectionView example in Swift

In these four videos I am going to share with you different ways to create a TabBar for your Swift mobile application. We will also learn how to: Customize TabBar background colour and tint colour, Create a new icon for TabBar item, Add more view controllers to UITabBarController Programmatically switch between TabBar view controllers Navigate…

Read More UITabBarController example in Swift

In this video tutorial I am going to share how to add rounded corners to an image and how to make image completely circular.   import UIKitclass ViewController: UIViewController { @IBOutlet weak var profile_picture: UIImageView! @IBOutlet weak var profile_picture2: UIImageView!override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from…

Read More Circular Image or Image with Rounded Corners. Example in Swift