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