Xcode 4.2 storyboard and GTMOAuth2ViewControllerTouch

408 views
Skip to first unread message

Jorge Luis Mendez

unread,
Apr 13, 2012, 6:17:40 PM4/13/12
to gtm-o...@googlegroups.com
Hi, 

Apologize for cross posting but I mistakenly used the wrong list.

I've been trying to figure out a clean way to use GTMOAuth2ViewControllerTouch with storyboards without much success. 

The problem is that I can't find how to initialize GTMOAuth2ViewControllerTouch properly since it must use "(id)initWithScope:(NSString *)scope clientID:(NSString *)clientID...". According to Apple's documentation the view controller's life cycle with Storyboards invokes initWithCoder:  and, if it's not implemented, init:.[1

Unless I'm missing something I think that the proper way to solve this would be to implement init: (or initWithCoder: for that matter) in GTMOAuth2ViewControllerTouch and synthesize the proper setters.


Cheers,
Jorge Luis

David Phillip Oster (☃)

unread,
Apr 16, 2012, 6:36:10 PM4/16/12
to gtm-o...@googlegroups.com
Implement your own subclass of GTMOAuth2ViewControllerTouch that implements either initWithCoder: or init, calls and just calls the appropriate [super initXXX with the correct arguments.
Reply all
Reply to author
Forward
0 new messages