Author: Ravi Shankar
We have blocked all requests from this device – Firebase Phone Authentication
Firebase enables apps with Phone Authentication feature but when testing your app you might have received the following error. We have blocked all requests from this device due to unusual activity. Try again later. This user usually occurs when you have received too many OTP’s within a short period of time. And we have to…
iPhone is not available error message in Xcode
If you are receiving an error “iPhone is not available” when connecting Xcode with iPhone then check iOS version on your iPhone. Make sure it is compatible with the Xcode version. The conflict in versions can be found under the Xcode – Window – Devices and Simulators. In my case the following error was mentioned.…
Clear CocoaPods cache, re-download and reinstall all pods
Here is the code snippet to clear CocoaPods cache then re-download and reinstall all pods. rm -rf “${HOME}/Library/Caches/CocoaPods“ rm -rf “`pwd`/Pods/“ pod update Source
PDFKit – View, Annotate PDF file in Swift
In this demo, we will be using PDFKit to View and Annotate PDF file. Let us start by selecting a Single View App template and name the project as PDFDemo. For this demo, we will be using a PDF file “TheWakingLights.pdf” and this can downloaded from the github project folder. Now drag and drop this…
Tab Bar Controller with WebView
In this article, we will see step by step instruction on working of Tab Bar Controller, UIWebView and Activity Indicator by loading couple of web pages using UIWebView in two different Tabs. Tab Bar Controller Tab Bar Controller is used for organising list of View Controllers by having seperate tabs for each View Controller. Check…
CoreData tutorial in Swift 5 using NSFetchedResultsController
Let us see an example TaskManager app using CoreData written in Swift Programming language. This app provides the following functionality Allow users to enter new task Update existing task delete task You can download source code for this project from Github. If you are familiar with user interface then move on to the Core Data…
Storyboard, Scene and Segue
Storyboard in iOS is helps you to design the user interface of your App. A storyboard can contain one or more Scenes (View Controllers) and the connection or relationship between two scenes are known as Segue. This is how a typical storyboard with Scenes and Segue look. The above example storyboard contains two scenes, first…
Get your current address in Swift (Swift 5)
In this Swift tutorial, we will see the steps required for using CoreLocation framework and retrieve the latitude and longitude of the location. Then use the CLGeocoder to reverse geocode the latitude and longitude details. This is a very basic tutorial that retrieves the location details on tap of a button and displays the information…