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

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 change < Back button text of your Apple iOS App

While we use app development methodology like MVC (Model, View, Controller) we encounter problem while navigating from one view to another how to change text of back button which get populated automatically by Apple iOS Operating System.

 
You can use below method in viewDidLoad method of your root view:

 

navigationItem.backBarButtonItem = UIBarButtonItem(title: "Back", style: .plain, target: nil, action: nil)

 
Here is another way of doing the same which can be done in ‘prepare for segue’ method of your app:

Continue reading “Here is how to change < Back button text of your Apple iOS App” »

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

My new venture into selling Stock Photography on 500px.com

From the start of being student of BFA (Bachelor of Fine Art) – Applied Art & even before that when I started with automatic film camera I was trying to be good photographer or may be I was.

 
Last year of my graduation I bought Canon A520 Point & Shoot camera & using that camera I shot almost 6,500 i.e. Six Thousand Photos over span of 10 Years. Plus photos taken from Mobile Phone Camera that may count more than another 2,000 i.e. Two thousand Photographs.

 
In Year August 2016 I bought iPhone. Using my latest iPhone I just shot another 2,200 Photos plus Slo-mo, Time-lapse & Videos in just 9 Months.

 
So with this collection more than 10,000 Photos I have decided to post it on Flickr & more importantly on 500px.com profile of mine so that I can sell them as stock photography & fetch some price for my work.

Continue reading “My new venture into selling Stock Photography on 500px.com” »

Continue Reading Post