SWRevealViewController icon indicating copy to clipboard operation
SWRevealViewController copied to clipboard

Method 'targetTransform' in protocol 'UIViewControllerContextTransitioning' not implemented

Open praveen-kanwar opened this issue 10 years ago • 25 comments

When Deployment Target Is 8.0 Or 8.1 There Comes A Warning For The Method Defined In SWRevealViewController.m @implementation SWContextTransitionObject { __weak SWRevealViewController *_revealVC; UIView *_view; UIViewController *_toVC; UIViewController *_fromVC; void (^_completion)(void); }

Warning : Method 'targetTransform' in protocol 'UIViewControllerContextTransitioning' not implemented

Plzzz Help.

praveen-kanwar avatar Nov 20 '14 06:11 praveen-kanwar

Right after @implementation enter the following code :

- (CGAffineTransform)targetTransform  {

return self.targetTransform; }

I hope this helps.

~ Kami

kambizn avatar Dec 12 '14 06:12 kambizn

It worked for me.

BlackFrog1 avatar Jan 26 '15 12:01 BlackFrog1

It worked for me too! Thanks!

arielcr avatar Feb 24 '15 20:02 arielcr

Ditto, thanks for the fix!

JacobJT avatar Aug 12 '15 16:08 JacobJT

But when I bring SWRevealViewController with Pod it's quite strange to correct it there. Could you fix it?

bigMOTOR avatar Nov 08 '15 19:11 bigMOTOR

Thanks! It works for me

InstaRobot avatar Dec 14 '15 00:12 InstaRobot

its not working on Xcode 8

philip223 avatar Jul 29 '16 13:07 philip223

As the last comment says, it is not working in xCode8 beta 5 with Swift 3 for IOS 10

Edited: Sorry, after checking the whole warning I realized that we were referring to a different method. My warning refers to pauseInteractiveTransition method. I just added the void method with empty body and the warning was gone. Sorry for the confusion.

joseortizcostadev avatar Aug 16 '16 22:08 joseortizcostadev

Joseortizcostadev Could you tell me exactly how to write the void method you are referring to and where to put it? I am having the same issue as you.

jehartley avatar Sep 09 '16 13:09 jehartley

In SWRevealViewController.m:

@implementation SWContextTransitionObject

- (void)pauseInteractiveTransition {
    // not supported
}

This is because this protocol's delegate method is required.

iDevelopper avatar Sep 09 '16 13:09 iDevelopper

Thank you!

jehartley avatar Sep 09 '16 16:09 jehartley

jehartley, iDeveloper just answered your question. Thank you.

joseortizcostadev avatar Sep 09 '16 16:09 joseortizcostadev

Hi there, Thank you very very much.. this fix

  • (void)pauseInteractiveTransition { // not supported }

Worked finally for me on Xcode 8.0 Swift 3 I really thank you guys very much. I been waiting so long for this. Thnx again.

Regards Ak

LEBANONCEDARS avatar Dec 31 '16 01:12 LEBANONCEDARS

thank you so much. perfectly working.

srikanthch251 avatar Jan 27 '17 07:01 srikanthch251

When I do the above fix, everything below the (void)pauseInteractiveTransition... turns red with errors. Is there a way for me to fix this? Thanks

alan-wilson avatar Apr 06 '17 21:04 alan-wilson

@iDevelopper could you help me with the above issue?

alan-wilson avatar Apr 06 '17 21:04 alan-wilson

@iDevelopper Here is my code:

@implementation SWContextTransitionObject

  • (void)pauseInteractiveTransition { }

{

__weak SWRevealViewController *_revealVC;
UIView *_view;
UIViewController *_toVC;
UIViewController *_fromVC;
void (^_completion)(void);

}

  • (id)initWithRevealController:(SWRevealViewController*)revealVC containerView:(UIView*)view fromVC:(UIViewController*)fromVC toVC:(UIViewController*)toVC completion:(void (^)(void))completion { self = [super init]; if ( self ) { _revealVC = revealVC; _view = view; _fromVC = fromVC; _toVC = toVC; _completion = completion; } return self; }

alan-wilson avatar Apr 06 '17 21:04 alan-wilson

I now get the error: Expected identifier or '(' plus a bunch more below where I implemented my code

alan-wilson avatar Apr 06 '17 22:04 alan-wilson

that’s what I have exactly and it’s working no errors! good luck..

#pragma mark - SWContextTransitioningObject

@interface SWContextTransitionObject : NSObject<UIViewControllerContextTransitioning> @end

@implementation SWContextTransitionObject

  • (void)pauseInteractiveTransition { // not supported }

    __weak SWRevealViewController *_revealVC; UIView *_view; UIViewController *_toVC; UIViewController *_fromVC; void (^_completion)(void);

  • (id)initWithRevealController:(SWRevealViewController*)revealVC containerView:(UIView*)view fromVC:(UIViewController*)fromVC toVC:(UIViewController*)toVC completion:(void (^)(void))completion { self = [super init]; if ( self ) { _revealVC = revealVC; _view = view; _fromVC = fromVC; _toVC = toVC; _completion = completion; } return self; }

On Apr 6, 2017, at 6:09 PM, alan-wilson <[email protected]mailto:[email protected]> wrote:

I now get the error: Expected identifier or '(' plus a bunch more below where I implemented my code

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292338698, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8haua_AZ-bhdIkf4oV6fwC0c4h97ks5rtWKBgaJpZM4C-Ow2.

LEBANONCEDARS avatar Apr 06 '17 22:04 LEBANONCEDARS

My code was slightly different, and now I have significantly less errors. However, my code still wont run correctly. I now have this:

  • (NSUInteger)supportedInterfaceOrientations { // we could have simply not implemented this, but we choose to call super to make explicit that we // want the default behavior. return [super supportedInterfaceOrientations]; }

#pragma mark - Public methods and property accessors

  • (void)setFrontViewController:(UIViewController *)frontViewController { [self setFrontViewController:frontViewController animated:NO]; }

  • (void)setFrontViewController:(UIViewController *)frontViewController animated:(BOOL)animated {

with the error: Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')

Do you know how to fix this?

Thanks,

Alan Wilson Security Engineer Keyes Information Technology (315) 816-4914 (office) (315) 775-7976 (cell)

From: LEBANONCEDARS [email protected] Reply-To: John-Lluch/SWRevealViewController [email protected] Date: Thursday, April 6, 2017 at 6:17 PM To: John-Lluch/SWRevealViewController [email protected] Cc: Alan Wilson [email protected], Comment [email protected] Subject: Re: [John-Lluch/SWRevealViewController] Method 'targetTransform' in protocol 'UIViewControllerContextTransitioning' not implemented (#356)

that’s what I have exactly and it’s working no errors! good luck..

#pragma mark - SWContextTransitioningObject

@interface SWContextTransitionObject : NSObject<UIViewControllerContextTransitioning> @end

@implementation SWContextTransitionObject

  • (void)pauseInteractiveTransition { // not supported }

__weak SWRevealViewController *_revealVC; UIView *_view; UIViewController *_toVC; UIViewController *_fromVC; void (^_completion)(void);

  • (id)initWithRevealController:(SWRevealViewController*)revealVC containerView:(UIView*)view fromVC:(UIViewController*)fromVC toVC:(UIViewController*)toVC completion:(void (^)(void))completion { self = [super init]; if ( self ) { _revealVC = revealVC; _view = view; _fromVC = fromVC; _toVC = toVC; _completion = completion; } return self; }

On Apr 6, 2017, at 6:09 PM, alan-wilson <[email protected]mailto:[email protected]> wrote:

I now get the error: Expected identifier or '(' plus a bunch more below where I implemented my code

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292338698, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8haua_AZ-bhdIkf4oV6fwC0c4h97ks5rtWKBgaJpZM4C-Ow2.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292340473, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYXww1kVndDUNhYxrrCwtjM6ysVAp2w6ks5rtWSIgaJpZM4C-Ow2.

CONFIDENTIALITY STATEMENT. This email and any attachment is for the sole use of the intended recipient and may contain private, confidential and/or privileged information that may be subject to Keyes Information Technology, LLC internal policies. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you have received this transmission in error, please notify Keyes Information Technology, LLC immediately by return email and delete the message and all copies and attachments from your system.​

alan-wilson avatar Apr 06 '17 22:04 alan-wilson

Honestly, I’m running Xcode 8.21, swift 3.. so I only know so much, just learning like you. But i get across similar problems like urs on my others apps because f this new Xcode update.. and i’m trying to fix it too.. let you know.

thnx

On Apr 6, 2017, at 6:24 PM, alan-wilson <[email protected]mailto:[email protected]> wrote:

My code was slightly different, and now I have significantly less errors. However, my code still wont run correctly. I now have this:

  • (NSUInteger)supportedInterfaceOrientations { // we could have simply not implemented this, but we choose to call super to make explicit that we // want the default behavior. return [super supportedInterfaceOrientations]; }

#pragma mark - Public methods and property accessors

  • (void)setFrontViewController:(UIViewController *)frontViewController { [self setFrontViewController:frontViewController animated:NO]; }

  • (void)setFrontViewController:(UIViewController *)frontViewController animated:(BOOL)animated {

with the error: Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')

Do you know how to fix this?

Thanks,

Alan Wilson Security Engineer Keyes Information Technology (315) 816-4914 (office) (315) 775-7976 (cell)

From: LEBANONCEDARS <[email protected]mailto:[email protected]> Reply-To: John-Lluch/SWRevealViewController <[email protected]mailto:[email protected]> Date: Thursday, April 6, 2017 at 6:17 PM To: John-Lluch/SWRevealViewController <[email protected]mailto:[email protected]> Cc: Alan Wilson <[email protected]mailto:[email protected]>, Comment <[email protected]mailto:[email protected]> Subject: Re: [John-Lluch/SWRevealViewController] Method 'targetTransform' in protocol 'UIViewControllerContextTransitioning' not implemented (#356)

that’s what I have exactly and it’s working no errors! good luck..

#pragma mark - SWContextTransitioningObject

@interface SWContextTransitionObject : NSObject<UIViewControllerContextTransitioning> @end

@implementation SWContextTransitionObject

  • (void)pauseInteractiveTransition { // not supported }

__weak SWRevealViewController *_revealVC; UIView *_view; UIViewController *_toVC; UIViewController *_fromVC; void (^_completion)(void);

  • (id)initWithRevealController:(SWRevealViewController*)revealVC containerView:(UIView*)view fromVC:(UIViewController*)fromVC toVC:(UIViewController*)toVC completion:(void (^)(void))completion { self = [super init]; if ( self ) { _revealVC = revealVC; _view = view; _fromVC = fromVC; _toVC = toVC; _completion = completion; } return self; }

On Apr 6, 2017, at 6:09 PM, alan-wilson <[email protected]mailto:[email protected]mailto:[email protected]> wrote:

I now get the error: Expected identifier or '(' plus a bunch more below where I implemented my code

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292338698, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8haua_AZ-bhdIkf4oV6fwC0c4h97ks5rtWKBgaJpZM4C-Ow2.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292340473, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYXww1kVndDUNhYxrrCwtjM6ysVAp2w6ks5rtWSIgaJpZM4C-Ow2.

CONFIDENTIALITY STATEMENT. This email and any attachment is for the sole use of the intended recipient and may contain private, confidential and/or privileged information that may be subject to Keyes Information Technology, LLC internal policies. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you have received this transmission in error, please notify Keyes Information Technology, LLC immediately by return email and delete the message and all copies and attachments from your system.​

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292341875, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8nH12_X8bSt9xoVyZHPwQa2tpOC1ks5rtWYcgaJpZM4C-Ow2.

LEBANONCEDARS avatar Apr 06 '17 22:04 LEBANONCEDARS

for orientations that’s what I have: it’s working.

}

  • (UIInterfaceOrientationMask)supportedInterfaceOrientations { // we could have simply not implemented this, but we choose to call super to make explicit that we // want the default behavior.

    return UIInterfaceOrientationMaskAll;

}

On Apr 6, 2017, at 6:24 PM, alan-wilson <[email protected]mailto:[email protected]> wrote:

My code was slightly different, and now I have significantly less errors. However, my code still wont run correctly. I now have this:

  • (NSUInteger)supportedInterfaceOrientations { // we could have simply not implemented this, but we choose to call super to make explicit that we // want the default behavior. return [super supportedInterfaceOrientations]; }

#pragma mark - Public methods and property accessors

  • (void)setFrontViewController:(UIViewController *)frontViewController { [self setFrontViewController:frontViewController animated:NO]; }

  • (void)setFrontViewController:(UIViewController *)frontViewController animated:(BOOL)animated {

with the error: Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')

Do you know how to fix this?

Thanks,

Alan Wilson Security Engineer Keyes Information Technology (315) 816-4914 (office) (315) 775-7976 (cell)

From: LEBANONCEDARS <[email protected]mailto:[email protected]> Reply-To: John-Lluch/SWRevealViewController <[email protected]mailto:[email protected]> Date: Thursday, April 6, 2017 at 6:17 PM To: John-Lluch/SWRevealViewController <[email protected]mailto:[email protected]> Cc: Alan Wilson <[email protected]mailto:[email protected]>, Comment <[email protected]mailto:[email protected]> Subject: Re: [John-Lluch/SWRevealViewController] Method 'targetTransform' in protocol 'UIViewControllerContextTransitioning' not implemented (#356)

that’s what I have exactly and it’s working no errors! good luck..

#pragma mark - SWContextTransitioningObject

@interface SWContextTransitionObject : NSObject<UIViewControllerContextTransitioning> @end

@implementation SWContextTransitionObject

  • (void)pauseInteractiveTransition { // not supported }

__weak SWRevealViewController *_revealVC; UIView *_view; UIViewController *_toVC; UIViewController *_fromVC; void (^_completion)(void);

  • (id)initWithRevealController:(SWRevealViewController*)revealVC containerView:(UIView*)view fromVC:(UIViewController*)fromVC toVC:(UIViewController*)toVC completion:(void (^)(void))completion { self = [super init]; if ( self ) { _revealVC = revealVC; _view = view; _fromVC = fromVC; _toVC = toVC; _completion = completion; } return self; }

On Apr 6, 2017, at 6:09 PM, alan-wilson <[email protected]mailto:[email protected]mailto:[email protected]> wrote:

I now get the error: Expected identifier or '(' plus a bunch more below where I implemented my code

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292338698, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8haua_AZ-bhdIkf4oV6fwC0c4h97ks5rtWKBgaJpZM4C-Ow2.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292340473, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYXww1kVndDUNhYxrrCwtjM6ysVAp2w6ks5rtWSIgaJpZM4C-Ow2.

CONFIDENTIALITY STATEMENT. This email and any attachment is for the sole use of the intended recipient and may contain private, confidential and/or privileged information that may be subject to Keyes Information Technology, LLC internal policies. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you have received this transmission in error, please notify Keyes Information Technology, LLC immediately by return email and delete the message and all copies and attachments from your system.​

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292341875, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8nH12_X8bSt9xoVyZHPwQa2tpOC1ks5rtWYcgaJpZM4C-Ow2.

LEBANONCEDARS avatar Apr 07 '17 00:04 LEBANONCEDARS

sorry you can check the whole thing I forgot to send you. it’s working

}

  • (UIInterfaceOrientationMask)supportedInterfaceOrientations { // we could have simply not implemented this, but we choose to call super to make explicit that we // want the default behavior.

    return UIInterfaceOrientationMaskAll;

}

#pragma mark - Public methods and property accessors

  • (void)setFrontViewController:(UIViewController *)frontViewController { [self setFrontViewController:frontViewController animated:NO]; }

  • (void)setFrontViewController:(UIViewController *)frontViewController animated:(BOOL)animated { if ( ![self isViewLoaded]) { [self _performTransitionOperation:SWRevealControllerOperationReplaceFrontController withViewController:frontViewController animated:NO]; return; }

    [self _dispatchTransitionOperation:SWRevealControllerOperationReplaceFrontController withViewController:frontViewController animated:animated]; }

  • (void)pushFrontViewController:(UIViewController *)frontViewController animated:(BOOL)animated { if ( ![self isViewLoaded]) { [self _performTransitionOperation:SWRevealControllerOperationReplaceFrontController withViewController:frontViewController animated:NO]; return; }

    [self _dispatchPushFrontViewController:frontViewController animated:animated]; }

On Apr 6, 2017, at 6:24 PM, alan-wilson <[email protected]mailto:[email protected]> wrote:

My code was slightly different, and now I have significantly less errors. However, my code still wont run correctly. I now have this:

  • (NSUInteger)supportedInterfaceOrientations { // we could have simply not implemented this, but we choose to call super to make explicit that we // want the default behavior. return [super supportedInterfaceOrientations]; }

#pragma mark - Public methods and property accessors

  • (void)setFrontViewController:(UIViewController *)frontViewController { [self setFrontViewController:frontViewController animated:NO]; }

  • (void)setFrontViewController:(UIViewController *)frontViewController animated:(BOOL)animated {

with the error: Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')

Do you know how to fix this?

Thanks,

Alan Wilson Security Engineer Keyes Information Technology (315) 816-4914 (office) (315) 775-7976 (cell)

From: LEBANONCEDARS <[email protected]mailto:[email protected]> Reply-To: John-Lluch/SWRevealViewController <[email protected]mailto:[email protected]> Date: Thursday, April 6, 2017 at 6:17 PM To: John-Lluch/SWRevealViewController <[email protected]mailto:[email protected]> Cc: Alan Wilson <[email protected]mailto:[email protected]>, Comment <[email protected]mailto:[email protected]> Subject: Re: [John-Lluch/SWRevealViewController] Method 'targetTransform' in protocol 'UIViewControllerContextTransitioning' not implemented (#356)

that’s what I have exactly and it’s working no errors! good luck..

#pragma mark - SWContextTransitioningObject

@interface SWContextTransitionObject : NSObject<UIViewControllerContextTransitioning> @end

@implementation SWContextTransitionObject

  • (void)pauseInteractiveTransition { // not supported }

__weak SWRevealViewController *_revealVC; UIView *_view; UIViewController *_toVC; UIViewController *_fromVC; void (^_completion)(void);

  • (id)initWithRevealController:(SWRevealViewController*)revealVC containerView:(UIView*)view fromVC:(UIViewController*)fromVC toVC:(UIViewController*)toVC completion:(void (^)(void))completion { self = [super init]; if ( self ) { _revealVC = revealVC; _view = view; _fromVC = fromVC; _toVC = toVC; _completion = completion; } return self; }

On Apr 6, 2017, at 6:09 PM, alan-wilson <[email protected]mailto:[email protected]mailto:[email protected]> wrote:

I now get the error: Expected identifier or '(' plus a bunch more below where I implemented my code

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292338698, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8haua_AZ-bhdIkf4oV6fwC0c4h97ks5rtWKBgaJpZM4C-Ow2.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292340473, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYXww1kVndDUNhYxrrCwtjM6ysVAp2w6ks5rtWSIgaJpZM4C-Ow2.

CONFIDENTIALITY STATEMENT. This email and any attachment is for the sole use of the intended recipient and may contain private, confidential and/or privileged information that may be subject to Keyes Information Technology, LLC internal policies. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you have received this transmission in error, please notify Keyes Information Technology, LLC immediately by return email and delete the message and all copies and attachments from your system.​

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292341875, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8nH12_X8bSt9xoVyZHPwQa2tpOC1ks5rtWYcgaJpZM4C-Ow2.

LEBANONCEDARS avatar Apr 07 '17 00:04 LEBANONCEDARS

for the transition: I just fixed mine for 10.2 iOS

@implementation SWContextTransitionObject

  • (void)pauseInteractiveTransition { // not supported }

    __weak SWRevealViewController *_revealVC; UIView *_view; UIViewController *_toVC; UIViewController *_fromVC; void (^_completion)(void);

  • (id)initWithRevealController:(SWRevealViewController*)revealVC containerView:(UIView*)view fromVC:(UIViewController*)

On Apr 6, 2017, at 6:24 PM, alan-wilson <[email protected]mailto:[email protected]> wrote:

My code was slightly different, and now I have significantly less errors. However, my code still wont run correctly. I now have this:

  • (NSUInteger)supportedInterfaceOrientations { // we could have simply not implemented this, but we choose to call super to make explicit that we // want the default behavior. return [super supportedInterfaceOrientations]; }

#pragma mark - Public methods and property accessors

  • (void)setFrontViewController:(UIViewController *)frontViewController { [self setFrontViewController:frontViewController animated:NO]; }

  • (void)setFrontViewController:(UIViewController *)frontViewController animated:(BOOL)animated {

with the error: Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')

Do you know how to fix this?

Thanks,

Alan Wilson Security Engineer Keyes Information Technology (315) 816-4914 (office) (315) 775-7976 (cell)

From: LEBANONCEDARS <[email protected]mailto:[email protected]> Reply-To: John-Lluch/SWRevealViewController <[email protected]mailto:[email protected]> Date: Thursday, April 6, 2017 at 6:17 PM To: John-Lluch/SWRevealViewController <[email protected]mailto:[email protected]> Cc: Alan Wilson <[email protected]mailto:[email protected]>, Comment <[email protected]mailto:[email protected]> Subject: Re: [John-Lluch/SWRevealViewController] Method 'targetTransform' in protocol 'UIViewControllerContextTransitioning' not implemented (#356)

that’s what I have exactly and it’s working no errors! good luck..

#pragma mark - SWContextTransitioningObject

@interface SWContextTransitionObject : NSObject<UIViewControllerContextTransitioning> @end

@implementation SWContextTransitionObject

  • (void)pauseInteractiveTransition { // not supported }

__weak SWRevealViewController *_revealVC; UIView *_view; UIViewController *_toVC; UIViewController *_fromVC; void (^_completion)(void);

  • (id)initWithRevealController:(SWRevealViewController*)revealVC containerView:(UIView*)view fromVC:(UIViewController*)fromVC toVC:(UIViewController*)toVC completion:(void (^)(void))completion { self = [super init]; if ( self ) { _revealVC = revealVC; _view = view; _fromVC = fromVC; _toVC = toVC; _completion = completion; } return self; }

On Apr 6, 2017, at 6:09 PM, alan-wilson <[email protected]mailto:[email protected]mailto:[email protected]> wrote:

I now get the error: Expected identifier or '(' plus a bunch more below where I implemented my code

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292338698, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8haua_AZ-bhdIkf4oV6fwC0c4h97ks5rtWKBgaJpZM4C-Ow2.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292340473, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYXww1kVndDUNhYxrrCwtjM6ysVAp2w6ks5rtWSIgaJpZM4C-Ow2.

CONFIDENTIALITY STATEMENT. This email and any attachment is for the sole use of the intended recipient and may contain private, confidential and/or privileged information that may be subject to Keyes Information Technology, LLC internal policies. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you have received this transmission in error, please notify Keyes Information Technology, LLC immediately by return email and delete the message and all copies and attachments from your system.​

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/John-Lluch/SWRevealViewController/issues/356#issuecomment-292341875, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOUu8nH12_X8bSt9xoVyZHPwQa2tpOC1ks5rtWYcgaJpZM4C-Ow2.

LEBANONCEDARS avatar Apr 07 '17 00:04 LEBANONCEDARS

@implementation SWContextTransitionObject {

__weak SWRevealViewController *_revealVC;
UIView *_view;
UIViewController *_toVC;
UIViewController *_fromVC;
void (^_completion)(void);

} Method 'pauseInteractiveTransition' in protocol 'UIViewControllerContextTransitioning' not implemented

warning semantic issues in xcode8

Amar04 avatar Jul 11 '17 11:07 Amar04