This article gives a brief idea on how to use multiple pod version on same Mac.

  1. Install a particular pod version on your mac. the following command installs 1.8.4 version

Install multiple version using the command above.

2. Check installed pod versions

This will list all installed cocoapod versions (I had 1.9.3 installed).

3. Now you can use any of the installed versions for pod install.

Install pods with specific version of cocoapods (change to your required version).

That’s it.

Enjoy!!

If you enjoyed reading this post, please share and give some claps so others can find it 👏👏👏👏👏 !!!!

You can follow me on Medium for fresh articles. Also, connect with me on LinkedIn.

If you have any…


Adding a small code snippet in swift to show a temporary toast for debugging purpose. I use it most of the time instead of print statements.


I had this confusion on how to add a dependency to a nested target via Cocoapods. This may helps someone. Here is how I did it.

I had this weird structure in one of my project.


Image by <a href=”https://pixabay.com/users/JESHOOTS-com-264599/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_
Image by <a href=”https://pixabay.com/users/JESHOOTS-com-264599/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_
credit : Image by Pixabay

Reference : itunes-store-web-service-search-api

Just suppose you want to check the app details of facebook app.

For example: https://apps.apple.com/in/app/facebook/id284882215 is the facebook app link in store.

Here, 284882215 is the id.

Just copy paste the id and use the following URL in your web browser.

https://itunes.apple.com/jp/lookup?id=284882215

Note: The jp in the above link stands for Japan. Replace the country code of your app region as required.

This will download a json text file. Scroll to the bottom and it will show you the bundle id. This will also provide other app details as well.

Attaching the text file contents here for…


I used to end up having so many local branches in sourcetree branches section which I no longer user. Here is a quick way by which you can delete multiple branches all at once.

One option is to right-click on each branch and delete them. But that is not easy if you have too many branches.

1. Click on your Repository and select Branch option.


In this article, I will try to add as many Q&A’s related to iOS . I will keep on updating this article. Hope it helps you guys 🙂😉.

Image by <a href=”https://pixabay.com/users/Clker-Free-Vector-Images-3736/?utm_source=link-attribution&amp;utm_medium=referra
Image by <a href=”https://pixabay.com/users/Clker-Free-Vector-Images-3736/?utm_source=link-attribution&amp;utm_medium=referra
image credit : pixbay

Q. Which function can you use on XCTest to clean up after every unit test?

A. tearDown: function

Q. Which framework has a C-based API to play short, simple sound effects in iOS?

A. Sound System Services within the AudioToolbox framework

Q. Which technique can be used to fire a completion handler when several asynchronous tasks finish at different times finish using GCD?

A. Dispatch Groups

Q. Which Instrument would be most suited to debug whether a view is drawn from cache or redrawn?

A. Core Animation

Q. To opt a UIViewController into state preservation, which property must first be set by the programmer?

A. restorationIdentifier

Q. Which method will inform the current view controller to update its status bar appearance?

A. setNeedsStatusBarAppearanceUpdate

Q. What is the use of the displayScale property on UITraitCollection?

A. To understand the pixel density of the device.

Q. Which framework allows developers to use biometric authentication, such as Touch ID or Face ID?

A. Local Authentication

Q. When creating a supplementary view for a custom collection view, what view needs to be the superclass?

A. UICollectionReusableView

Q. Which class is used to provide a popover UIViewController?

A. UIPopoverPresentationController

Q. What is the maximum number of tabs that can be shown in a UITabBarController before a "More" option is added?

A. Five.

Q. Which is provided as standard with the default table cell using the default table cell style?

A. An image, text label, and accessory

Q. When internationalizing an app, what is the XML-based document used by translators to localize user-facing strings into multiple languages?

A. .xliff file.

Q. What option could you use within the simulator to identify views using transparent backgrounds?

A. Color Blended Layers

Q. Which class will allow you to use one or more blocks concurrently?

A. NSBlockOperation

Q. Is it possible to record video during background execution?

A. No

Q. Is it possible to record audio during background execution?

A. Yes

Q. Is it possible to Download content during background execution?

A. Yes

Q. Which method would you use to respond to a transition between two scenes in a storyboard triggered by a user?

A. prepareForSegue:sender:

Q. Which class supports sharing small amounts of data (strings — for example) automatically across every instance of an app used by the same iCloud user?

A. NSUbiquitousKeyValueStore

Q. Which delegate method can be used declared in UIGestureRezognizerDelegate to give precedence to conflicting gesture recognizers?

A. gestureRecognizerShouldBegin:

🍎🍎🍎 Some More interview questions for you here : Link

Enjoy!!. I will be adding more questions in this article. Just follow me so that you don’t miss any of them.

If you enjoyed reading this post, please share and give some claps so others can find it 👏👏👏👏👏 !!!!

You can…


This article explains how we can create segues between multiple storyboards in the same Xcode project using storyboard references.

an image
an image

The problem with a single storyboard is that they become complex for larger projects. It is also difficult to maintain and also the source control part becomes a headache as well. Storyboard references are going to be helpful when you want to divide your views betweens storyboards and avoid all these issues.

How to use storyboard references?

  • Create a new project (Single view application).
  • Create a new storyboard file and name it Second.storyboard .


In this article, I will try to add as many Q&A’s related to iOS . I will keep on updating this article. Hope it helps you guys 🙂.

source: stocksnap.io

1. Do we have an extension in Objective — C?

The answer is YES.

2. Difference between a category and extension in objective C?

A category can be declared for any class, even if you don’t have the original implementation source code.

A class extension bears some similarity to a category, but it can only be added to a class for which you have the source code at compile time (the class is compiled at the same time as the class extension).

Categories allow you to add methods outside of the main interface file. Whereas Extensions must be implemented in main Interface file. Which means we can safely conclude you cannot use extensions for extending Builtin classes or Classes for…


The Taptic Engine is Apple’s implementation of haptic user interface feedback. This is available from iPhone 7 and above. Let’s understand more about it. Taptic Engine is available from iphone 6s, but iphone 7 has a better version of it.

The iPhone has previously used the linear actuator for vibrations — this has shifted over to the Taptic Engine in the iPhone 6s and above. Apple applies its Taptic Engine to mimic a home button press, relay system notifications, and reinforce audio alerts. But the feedback from the system feels natural, and in sync with what is being presented on screen.

How to do a basic vibration on iOS devices?

AudioToolbox.AudioServices helps us to vibrate the phone using the following code. This works on all devices.

Here is a LIST OF SOUND_IDs available in iOS devices.

Iphone 6s and above comes with taptic engine along with the introduction…


Let’s see how we can create a QRCode or barcode scanner app in iOS using swift AVFoundation.

It is easy to create a QRCode scanner app in iOS using swift. The AVFoundation framework provides a default implementation to do the same. Let us see how it is done.

AVFoundation has AVCaptureSession which provides the camera interface which is needed to scan the code. All that we have to do is to add a customized version of AVCaptureMetadataOutput to the AVCaptureSession instance and call startRunning() on the same.

AVCaptureMetadataOutput has a metadataObjectTypes array which should be customized based on our requirement and should conform to the AVCaptureMetadataOutputObjectsDelegate.

Abhimuralidharan

iOS and tvOS developer, dreamer, photographer 🤨

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store