Abhayam Rastogi

iOS, Technology

Objective-C utility class using C functions in iOS

Introduction Like C, I would like to use C functions in  Objective-C class so i could use C functions anywhere anytime without using class name. Defining function: Function definition in C programming language is as follows − return_type function_name(parameter list) { body of the function } In...

24-Nov-2015

iOS, Technology

Common Utility Extensions in Swift (Utils.swift)

What is Extension: Extensions are basically similar to an Objective-C category. Extensions are sort of methods adding in a Classe or Structure in a different flavour. Syntax of Extension: The syntax to create an extension is very similar to creating a type. You can write the following code in your Utils.swift class to add a...

11-Aug-2015

iOS, Technology

Infinite Scrolling using UICollectionView in Swift

Introduction This tutorial is for iOS application developers to insert infinite scrolling in swift to achieve gallery effect using UICollectionView (Objective-C class). We will use UIScrollView delegate methods, UICollectionView & custom UICollectionViewCell for endless scrolling. You can add more items in collection view data...

27-Jul-2015

iOS

Paging With UIScreenEdgePanGestureRecognizer

How To Use UIScreenEdgePanGestureRecognizer for Paging in iPhone 5 Before we get started, let me give you a brief overview of how you use UIScreenEdgePanGestureRecognizers and why they’re so handy. Using UIScreenEdgePanGestureRecognizers is extremely simple. You just perform the following steps: Create a screen edge pan gesture...

20-Apr-2015