0

I was watching WWDC 2014 video A Look Inside Presentation Controllers
I downloaded the source code (written in Objective-C) for the session, try to build it and I got this error:

No visible @interface for UIPresentationController declares the selector initWithPresentingViewController:presentedViewController.

Is the method suppose to be in the UIPresentationController?

Evgeny Karkan
  • 8,782
  • 2
  • 32
  • 38
Oluwatobi Omotayo
  • 1,719
  • 14
  • 28

2 Answers2

0

I found the answer from the documentation of UIPresentationController the method is supposed to be - (instancetype)initWithPresentedViewController (UIViewController *)presentedViewController presentingViewController:(UIViewController*)presentingViewController; not -(instancetype)initWithPresentingViewController:(UIViewController *)presentingViewController presentedViewController:(UIViewController *)presentedViewController. As soon as I changed that it fixed the problem

Oluwatobi Omotayo
  • 1,719
  • 14
  • 28
0

No visible @interface for 'GIDSignIn' declares the selector 'signInWithConfiguration:presentingViewController:callback:' Google SDK is updated there for in v6.2.x version signInWithConfiguration:presentingViewController:callback: is using but in updated version v7.0.0 using signInWithPresentingViewController:completion: — check this blow link - and check what version you are using . https://developers.google.com/identity/sign-in/ios/quick-migration-guide