2

Recently I submitted my app on AppStore with a method setting badgecolor of tabbaritem.

    [[[AppDelegate globalDelegate].tabBarController viewControllers] objectAtIndex:1].tabBarItem.badgeColor = kTabBarBadgeColor;

This badgeColor came in iOS 10 only and my app supported iOS 8 and above. I had no idea about it and the app got approved. Now, I have to resubmit my app with fixing this issue.

I want to know if there is a way to find out such cases where methods get deprecated or are visible in specific OS versions only.

Swati
  • 1,417
  • 1
  • 15
  • 35

1 Answers1

0

By changing target of Xcode project you can see errors & warnings while building.

If you need more info, You can visible all API changes like Added,Modified & Deprecated variants in Apple documentation

it will give you searching options for both Swift & Objective C

enter image description here

Searching UITabBarItem Instance Property badgeColor. it gives API changes are none.Supporting SDK's version

SDKs
iOS 10.0+
tvOS 10.0+

Searching finishedSelectedImage instance method of UITabBarItem.

SDK
iOS 5.0–7.0 Deprecated

Deprecated Use selectedImage with UIImageRenderingModeAlwaysOriginal instead.

Dharma
  • 3,007
  • 3
  • 23
  • 38
  • thanks. can you share a link to this. How do I change the target for my target, I have deployment target set to iOS 8. – Swati Jul 06 '17 at 05:34