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.

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
# Uncomment the next line to define a global platform for your project
# platform :ios, ‘9.0’
workspace ‘MainTarget’target ‘MainTarget’ do
# Comment the next line if you don’t want to use dynamic frameworks
use_frameworks! …


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

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


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.

Image for post
Image for post

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

Image for post
Image for post
Image for post
Image for post

Using Command line:

git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch…


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?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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?

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

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


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

an image
an image

How to use storyboard references?

  • Create a new project (Single view application).
  • Create a new storyboard file and name it Second.storyboard .
Image for post
Image for post
  • Now, create a new ViewController inside the Second storyboard and name it SecondViewController .
Main storyboard and FirstViewController
Main storyboard and FirstViewController
Main storyboard and FirstViewController


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 for post
Image for post
source: stocksnap.io

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

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


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.

Image for post
Image for post

How to do a basic vibration on iOS devices?

AudioServicesPlaySystemSound(SystemSoundID(kSystemSoundID_Vibrate))


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

Image for post
Image for post
let metadataOutput = AVCaptureMetadataOutput()metadataOutput.setMetadataObjectsDelegate(self, queue: DispatchQueue.main)metadataOutput.metadataObjectTypes = [.qr, .ean8, .ean13, …


Every swift developer who has at least 6 months experience will know about Struct, Enum, and Class. Everyone use them on a regular basis without knowing what they are and when and where to use them. I will try to make it simple.

Image for post
Image for post
image source: stocksnap

Value Types and Reference Types

  • Value Type: Struct , Enum
  • Reference Type: Class

About

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