In WWDC 2017 Apple has introduced Drag & Drop Interaction API with iOS 11. This API will help to implement Drag & Drop feature within the same application or between different iOS applications. But for now, this API is enabled only in iPad. Now we will learn how to implement Drag & Drop feature in UICollectionView. This...
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...
What’s the need of NSGridView : Suppose you want to create a view which should look like this and to create it we have following available options: 1. Autolayout : Maintanence on constraints is complicated 2. NS/UIStackView : Arranging a sequence of items Fine control over content size and spacing To...
Ever wanted to have your own custom loader view instead of iOS default activity indicator? Is it difficult to create your own custom loader ??? No, it’s not. You can easily create custom loader using UIImageView animationImages property.You just need images using which you will create your own loader. So here is the way to...
One year ago, Apple released Swift, a brand new programming language for both iOS and OS X development and now they introduced Swift 2 with Xcode 7 this year. Swift 2 includes some new features such as improved error handling, availability check and , protocol extensions etc. Lets take the overview of new features. Error handling : ...
In the first part you learned how to setup Amazon SDK and upload file on S3. In this part, you will learn how to download file with progress status from Amazon S3. Getting Started : Import following headers into your viewController: [code language="objc"] #import <AWSiOSSDKv2/AWSCore.h> [/code] To use the S3...
Amazon Simple Storage Service (Amazon S3), provides developers and IT teams with secure, durable, highly-scalable object storage. Amazon S3 is easy to use, with a simple web services interface to store and retrieve any amount of data from anywhere on the web. Requirements: iOS 7 and later Xcode 5 and later Version 2 of the AWS...
Custom fonts can make all the difference in the world when you’re trying to convey a specific user experience. Luckily, it’s pretty easy to add your own fonts in your iOS app but most of the custom fonts usually have some issue with their vertical alignment. Either they sit too low or too high when compared to the default fonts. This...
What is Migration ? Migration is a way of telling Xcode how to transition the data from the old model to the new model . Why migration required ? When the model does not match the store, a migration is required. In order to perform a migration, Core Data (technically, an instance of NSMigrationManager) requires these things: ...