User Privacy & Data Protection Standards in new Apple iPhone, iPad and Mac Operating Systems

I was planning for long time but never implemented Google Analytics for my Apple iOS Apps to get real data about my app usage. I thought it was more of work to implement analytics in app with framework using cocoa-pods which will in a way will slowdown my app performance.

But with the news of Apple is vary serious about and already is about privacy and data collection with online ads for Safari Browser on Mac and system wide privacy settings on Apple iOS 14 for iPhone. I am happy that I never implemented third party analytics framework or never added ad network to get revenue out of my apps. My apps are already paid and I don’t want to mess-up user experience with impromptu in-app advertisements.

(more…)

Continue Reading Post

How to get OTP / SMS / text messages immediately on your Mac in sync with your iPhone cellular number

Prerequisites:

1. I assume you have added your primary and same Apple ID / iCloud Account on your respective Mac and iPhone.

2. You have enabled iCloud Sync for Messages App on your iPhone and Mac in iCloud Settings.

3. You are using the latest release of macOS operating system, the latest release of iOS operating System and latest release Safari Browser.

Once above prerequisites are met we can proceed further…

Note: You can autofill security codes from your iPhone to Safari on Mac. This is Safari only feature.

To set up Text Message Forwarding on your iPhone follow below steps:

(more…)

Continue Reading Post

Here is how to still receive calls when bedtime and sleep mode (Do Not Disturb) is turned-on on your Apple iPhone and Apple Watch?

I just activated Apple iOS Bedtime feature and Apple Sleep feature for my iPhone and Apple Watch.

But you may noticed one thing once your Sleep time starts iPhone stops ringing for incoming calls.

So here is how to disable silent incoming call feature…

Step 01: Just go to you settings app on your iPhone

(more…)

Continue Reading Post

Apple Music Error [Solved] – Some items, including “Song’s Title”, were not copied to the iPhone “John Appleseed’s iPhone 11 Pro” because they could not be found.

After I started syncing my Apple Music to my iPhone via Finder app there was an error that I was getting over and over again.

The error was ‘Some items, including “Song’s Title”, were not copied to the iPhone “John Appleseed’s iPhone 11 Pro” because they could not be found.’

(more…)

Continue Reading Post

How to programmatically identify if Apple iOS (iPhone) device has a notch or safe area

Since iPhone X, Apple is releasing various sizes of iPhone with a notch.

So Identifying new iPhones that have a notch or doesn’t is a new problem for every Apple App Store App Developer. e.g. Apple has just released in 2020 with iPhone 12, Pro, Pro Max and Mini that are not similar in screen dimensions of previous generations of iPhone 11.

After reading and surfing the web I found two helpful articles on the web that will guide you to solve this problem one post was on Stack Overflow and another article by @cafielo.

But code shared in above both articles were not compatible with new Apple iOS versions 13 and 14.

So I rewrote those code that may be compatible with Apple iOS 13 and 14 operating system.

(more…)

Continue Reading Post

How conditional code for and identify device between iOS (iPhone), iPadOS (iPad) & macOS Catalyst (Apple Macintosh)

If you are developing macOS catalyst app then you may be wondering how to conditionally write code specifically for iOS and iPad OS or macOS 10.15 catalyst app.

 
Here is how to do it.

 
Use below code to declare code specifically written and that will compile only for iOS and iPadOS.

(more…)

Continue Reading Post

Here is how to set UINavigation Bar Large Title Text Colour (Foreground Colour) in iOS 11, 12, 13 and above

Here is how to set UINavigation Bar Large Title Text Colour (Foreground Colour) in iOS 11, 12, 13 and above,

 
Declare Navigation Bar Title Text & Large Title Settings like this in your View Controller’s ViewDidLoad() Method:

 

self.navigationItem.title = "Home"
self.navigationController?.navigationBar.prefersLargeTitles = true
self.navigationController?.navigationItem.largeTitleDisplayMode = .automatic

 
Now write below line inside ViewDidLoad() to get Large Title Foreground colour as White Colour like this:

(more…)

Continue Reading Post

Here is how to do UIImageView Image Inset in Apple iOS App using Xcode

Here is example if you want to inset UIImageView so that image does not fit edge to edge of the UIImageView

 
Note: Use of latest version of Xcode & Latest version of Swift Programming Language is preferred.

 
Here is step by step procedure to achieve designed result:

 
Step 01: Create Apple iOS Project in Xcode. Add UIImageView to View Controller in Storyboard.

 
Step 02: Now Connect that UIImageView to View Controller Swift File. It will look something like this.

 

@IBOutlet weak var imageView: UIImageView!

 
Step 03: Now add following code in ViewDidLoad Function of your View Controller File.

(more…)

Continue Reading Post

Here is how to animate Tab bar tab switch with a CrossDissolve slide transition in UITabBarViewController!

While searching for answer on web for how to give CurlUp / CrossDissolve / FlipFromRight / FlipFromLeft / CurlDown / FlipFromTop / FlipFromBottom transition effect for UITabBar Tab Switch.

 
I found out this answer but with bug or black screen when you tap on same tab twice i.e. destination and current tab is same.

 
So I solve this issue with my logic and additional if and else statement.

 
So here is final answer without any bug.

 

Step 01: Add this two classes as Super Class to your UITabBarViewController

 

UITabBarController, UITabBarControllerDelegate

 

Step 02: Now add following code to your viewDidLoad Function in your UITabBarViewController

 

self.delegate = self

(more…)

Continue Reading Post

Here is how to hide Navigation Bar on Scroll in your Apple iOS App with single line of code!

Assumption: I assume your have embedded in UINavigationBar in your Apple iOS App inside Storyboard.

 
If you want to mimic Apple Safari iOS App’s behaviour of hiding navigation bar on scroll you can do it in just single line of code without any hassle.

 
You have to add following code in your View Controller’s viewDidAppear function where you have added UINavigationBar in storyboard:

(more…)

Continue Reading Post