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;

Continue reading “Here is how to animate Tab bar tab switch with a CrossDissolve slide transition in UITabBarViewController!” »

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:

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

Continue Reading Post

Here is how to programatically change UITabBar Tint Color, UITabBar Item Tint Color & also how to change UITabBar Item’s unselected icon tint color.

Assumption: I assume you have deployed UITabBarViewController in your iOS App. And now you want to change UITabBar Tint color, UITabBar Item’s Tint color and also UITabBar’s unselected icon’s tint color.

 
Do this is just simple as single line of code.

 
Below code will go to your Apple iOS app’s AppDelegate.swift file under ‘didFinishLaunchingWithOptions’ function.

 
So your code will look something like this.

Continue reading “Here is how to programatically change UITabBar Tint Color, UITabBar Item Tint Color & also how to change UITabBar Item’s unselected icon tint color.” »

Continue Reading Post

Here is how to programmatically set icon / image for Tab Bar Item in UITabBarViewController

Assumptions: I assume you have already embedded in UITabBarViewController for your ViewController in Interface Builder. I also assume you have three tab bar items with individual view controllers and further you have created images assets with your icon images.

 
Solution is simple you have to copy following code in your current View Controller’s ViewdidLoad method.

Continue reading “Here is how to programmatically set icon / image for Tab Bar Item in UITabBarViewController” »

Continue Reading Post

How to programatically change titles of tabs in UITabBarViewController and here is how to programatically change title of individual View Controllers at Navigation Bar inside individual UITabBarViewControllers.

Let’s assume you are using Tab Bar View Controller in your Xcode Apple iOS App Project.

 
You have embedded in your view controller with UITabBarViewController.

 
Say, you are using 3 Tab Views.

 
In Swift programming Language number counting starts with 0 so you will write code like this in your respective view controller’s viewDidLoad function.

Continue reading “How to programatically change titles of tabs in UITabBarViewController and here is how to programatically change title of individual View Controllers at Navigation Bar inside individual UITabBarViewControllers.” »

Continue Reading Post

Here is solution if you are trying to upload your app to Apple iTunes Connect but you are stuck in “Uploading to App Store – Authenticating with iTunes Store…” Message

It’s every app developers dream time when he develops and then uploads his app to Apple App Store using Xcode.

 
At that moment of time while uploading your app if you are stuck in one place where Xcode organiser says “Uploading to App Store – Authenticating with iTunes Store” & there is no further progress.

 
Then here is how to solve this!

 
Just open Terminal App from your Applications > Utilities > Terminal.

 
Paste below code in Terminal & hit return key.

Continue reading “Here is solution if you are trying to upload your app to Apple iTunes Connect but you are stuck in “Uploading to App Store – Authenticating with iTunes Store…” Message” »

Continue Reading Post

Here is how to programmatically identify if user is on iPhone or iPad. There is also way to find out if user is on either device and if it is in portrait mode, landscape mode.

We will explore our ways to identify device of user whether it is iPad or iPhone, We will do all this in Swift Programming Language with latest Xcode build.

 
There four ways that iOS device will get identified .phone, .pad, .tv & .unspecified.

 
So code will look like this in swift

 

if (UIScreen.main.traitCollection.userInterfaceIdiom == UIUserInterfaceIdiom.pad) {
    print("It's iPad")
    // Your code here
    
} else if (UIScreen.main.traitCollection.userInterfaceIdiom == UIUserInterfaceIdiom.phone) {
    print("It's iPhone")
    // Your code here
    
} else if (UIScreen.main.traitCollection.userInterfaceIdiom == UIUserInterfaceIdiom.tv) {
    print("It's Apple TV")
    // Your code here
    
} else if (UIScreen.main.traitCollection.userInterfaceIdiom == UIUserInterfaceIdiom.unspecified) {
    print("It's Unknown Device")
    // Your code here
    
}

Continue reading “Here is how to programmatically identify if user is on iPhone or iPad. There is also way to find out if user is on either device and if it is in portrait mode, landscape mode.” »

Continue Reading Post

What is Apple Store Kit Framework and how to write code for SKStoreReviewController API which will prompt user to write review for you App while using your app & without leaving your app

Introduction to StoreKit and Apple App Store policies

 
I will write down few concepts & ideas to help you understand to implement StoreKit app review functionality in your app using Xcode.

 
Important Points to remember

 
You can ask your users to rate your app on a scale of 1 to 5 stars. User can also choose to write review for iOS and macOS apps.

 
Developer can view, sort and respond to reviews in iTunes Connect.

 
About Summery of Ratings

 
Every App Store app has one summary rating on product page, specific to each territory on the App Store.

 
Developer can reset your app’s summary rating with release a new version of app.

Continue reading “What is Apple Store Kit Framework and how to write code for SKStoreReviewController API which will prompt user to write review for you App while using your app & without leaving your app” »

Continue Reading Post

How to fix if ‘My Photo Stream’ is not working on your Apple iOS Devices including iPhone, iPad and iPod touch

I have jot down few points to check why My Photo Stream is not working in your iOS Device & syncing Photos across iOS & OSX devices.

 
Solution & Few Check Points:

  1. You are sign in to iCloud using your preferred active Apple ID
  2. ‘My Photo Stream’ is checked & on your device under iOS Settings App under iCloud Photos related Section
  3. Continue reading “How to fix if ‘My Photo Stream’ is not working on your Apple iOS Devices including iPhone, iPad and iPod touch” »

Continue Reading Post

Why you should turn off My Photo Stream on all of your Apple iCloud Enabled Devices including MacBook, MacBook Pro, iMac, Mac Mini, iPhone, iPad and iPod touch

I have just turned off Apple iCloud’s Photos App related feature called ‘My Photo Stream’.

 
Apple iCloud Photos Settings on Macintosh OSX Desktop & Laptop

 

 
Apple iCloud Photos Settings on iOS, iPhone, iPad, iPod touch

 

 
My Photo Stream suppose to help every Apple user with multiple Mobile / Handheld devices like iPhone / iPad & iPod touch to collects all photos taken from camera & collects under one folder called ‘My Photo Stream’ in the cloud on Apple Servers.

Continue reading “Why you should turn off My Photo Stream on all of your Apple iCloud Enabled Devices including MacBook, MacBook Pro, iMac, Mac Mini, iPhone, iPad and iPod touch” »

Continue Reading Post