0

My project was running normally. After I ran a pod install to add another project, I got this error. "Method tabBar(_:shouldHijack:) with objective-c selector tabBar:ShouldHijack: conflicts with method tabBar(_:shouldHijack:) with objective-c selector. This happens when I remove override from the function, here is the line of code.

override func tabBar(_ tabBar: UITabBar, shouldHijack item: UITabBarItem) -> Bool {

}
rmaddy
  • 314,917
  • 42
  • 532
  • 579
john
  • 507
  • 1
  • 5
  • 15
  • Chek this http://stackoverflow.com/questions/29457720/compiler-error-method-with-objective-c-selector-conflicts-with-previous-declara – Lalit kumar Apr 11 '17 at 13:32
  • Check if the method name is correct. Normally, for any delegate methods, you shouldn't have the `override` keyword – Luca D'Alberti Apr 11 '17 at 13:47

0 Answers0