Tips to Become a Swift Developer

Tips to Become a Swift Developer Improve the Readability of Constants import Foundation struct Constants { struct FoursquareApi { static let BaseUrl = "https://api.foursquare.com/v2/" } struct TwitterApi { static let BaseUrl = "https://api.twitter.com/1.1/" } struct Configuration { static let UseWorkaround…

Best Practice for the file or folder naming conventions !

Best Practice for the file or folder naming conventions   Avoid extra long folder names and complex hierarchical structures but use information-rich filenames instead Dos: Z:\Prod\QA\My_Code_Tips.xls Don'ts: Z:\Production \Quality Control\MY \Code \Tips\ My_Code_Tips.xls Reason: Complex hierarchical folder structures require extra…

What is Difference between Storyboard and XIB!

What is Difference between Storyboard and XIB! STORYBOARD In simple words Storyboard is one single file for all the views or screens that in yours apps. It transitions one screen to another screen. It minimizes (reduces) the number of files…

Manually Adding a Swift Bridging Header !

Does Xcode automatically create one for me? Yes. Add a new Swift file to your Xcode project. Name it as you please and you should get an alert box asking if you would like to create a bridging header. Note:…

Migrate from Swift 2.3 to Swift 3 and xCode 8 !

Upgrade to Xcode 8 without migrating to swift 3 ! We’re well into the betas of Xcode 8 which will contain the final release of Swift 3, hopefully set for release around the first couple weeks of September. With this…

Swift Sets and their Methods in IOS !

In Objective-C there were three basic types of Data Structures, NSArray, NSDictionary, and NSSet. In Objective-C, the immutable and mutable forms were separate, so you also had NSMutableArray, NSMutableDictionary, and NSMutableSet. In Swift we were greeted with Arrays and Dictionaries,…

Naming conventions in IOS !

Naming constants When talking about constant, there is a distinction worth making: public string IDs that identify a specific class of objects by being unique such as NSNotification names, NSError domains, etc. private IDs which are variables aimed at giving…

ERROR Handling in swift !

Ideally, errors should never occur. File we need should always be available and networks should always be present and reliable. Unfortunately this reality is not ideal and we have to deal with the consequences. Thankfully the Swift team included a…

Creating the Hello World iOS App using SWIFT !

Creating the Hello World iOS App using SWIFT ! So, when you first load Xcode, assuming you haven’t turned it off in the preferences, you will see the “Welcome to Xcode” screen. To start a new app, you click the…

What is NSOperationQueue or NSOperation in SWIFT ?

What is NSOperationQueue or NSOperation in SWIFT ? NSOperation is an abstract class which can’t be used directly so you have to use NSOperation subclasses. In the iOS SDK, we are provided with two concrete subclasses of NSOperation. These classes…

Why do We Need Concurrency in IOS ?

I know you’re a good developer with experience in iOS. No matter what kinds of apps you’re going to build, however, you will need to know concurrency to make your app more responsive and fast. Here I summarize in points…

iOS Crash Reporting Tools

Mobile app crash reporting tools have evolved to become more developer-friendly over time. We’ve seen them become easier to integrate and offer new features. There are a lot of options out there today.We have found that there's a crash reporting…