iOS, Mobility

Swift For-Loops

In Swift 3.0 C-style for-loops will be removed. This will force developers to use a swift syntax for for-loops. So lets begin with swift for loops : Looping n times [code language="objc"] // output is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 for i in 0..<10 { print(i) } // or for i in 0...9 { print(i) } [/code] Looping n...

by Ashu Baweja
Tag: iOS
10-Jul-2016

iOS, Technology

12 Key Differences between Objective C and Swift

Apple recently unveiled a new programming language Swift, to replace Objective-C for OS X and iOS application development. The advent of Swift marks the transformation from a decade old language to a naive yet effective programming language - Swift. The main purpose of introducing Swift is to provide a new easier, simpler, more flexible...

by Swati Khatri
Tag: iOS
21-Jun-2016

iOS, Mobility

Playing with 3D Touch—iOS

As we know that Apple has got a very different way to interact with the device in 6s and 6s plus by introducing 3D touch. In 3D touch, the phone judges how much pressure we are applying over the device and perform an appropriate action accordingly. iPhone responds to the subtle tap when one interacts with the device and thus you will...

by Nehu Gumber
Tag: iOS
31-Mar-2016

iOS, Mobility

App Thinning for iOS, tvOS and watchOS

App thinning is a concept for modern day interactive apps where there are a lot of resources. The App Store and OS install the app according to the device, with a minimal footprint. This helps in making the app which occupies less space, are easy to download and make use of all features. Faster downloads and minimum space occupancy gives...

by Ashish Jain
Tag: iOS
20-Jan-2016

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...

by Abhayam Rastogi
Tag: iOS
24-Nov-2015

Mobility, Technology

STACK VIEW IN iOS 9

Gone are the days when every scrollable grid is either TableView or CollectionView. Enter StackView.! Stack view is a simple class that allows to stack layout views in either a column or a row. What makes it more helpful is the elimination of the need to add the constraints. It applies Auto Layout to the views within the stack view....

by Ashish Jain
Tag: iOS
03-Nov-2015

iOS, Mobility

App42 Shephertz integration for iOS

Shephertz is a cloud ecosystem for apps and games. It works on cross-platforms. The App42 Cloud APIs consist of a REST based service, which has both JSON and XML interface. There are around 20+ modules with over 400+ APIs which will help us to develop our applications irrespective of the type or domain of the App we are developing....

by Nehu Gumber
Tag: iOS
11-Oct-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...

by Abhayam Rastogi
Tag: iOS
11-Aug-2015

Grails, iOS

Push Notification in IOS Using Grails

Hi All, In my previous blog . I have explained how to send the push notification to Android Device. Now, it's time to see how we can send push notification to iOS devices. For sending Push Notification in iOS I have used JavaPNS_2.2.jar . So before, directly jumping on example we should know that what are prerequisites of...

by madhav.khanna
Tag: iOS
31-Jul-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...

by Abhayam Rastogi
Tag: iOS
27-Jul-2015

iOS, Mobility

Detecting phone call interruption in iOS App

One of the default behaviors of iOS is that it stops all the services & functions of the app while you are on a phone call. While writing an audio-video iOS App, we must handle phone call's interruption properly to resume the app. It is possible to detect a phone call and it's states with the help of Core Telephony framework....

by vishal.gupta
Tag: iOS
26-Jun-2015