ios - Problems with PKRevealController -


i'm trying use pkrevealcontroller storyboard. how appdelegate looks @ startup

mainnavcontroller* navcontroller = [[uistoryboard storyboardwithname:@"main" bundle:nil]instantiateviewcontrollerwithidentifier:@"mainnavcontroller"];  mainviewcontroller* mainviewcontroller = [[uistoryboard storyboardwithname:@"main" bundle:nil]instantiateviewcontrollerwithidentifier:@"mainviewcontroller"]; leftviewcontroller* leftviewcontroller = [[uistoryboard storyboardwithname:@"main" bundle:nil]instantiateviewcontrollerwithidentifier:@"leftviewcontroller"];   pkrevealcontroller *revealcontroller = [pkrevealcontroller revealcontrollerwithfrontviewcontroller:navcontroller  leftviewcontroller:leftviewcontroller];  revealcontroller.animationduration = 0.25; revealcontroller.delegate = self;  self.window.rootviewcontroller = revealcontroller; 

so seems work fine, , app launches no problems, when swipe right, left view controller shows , crashes error:

'nsinvalidargumentexception', reason: '-[pkanimation pk_identifier]: unrecognized selector sent instance

i don't know how solve this.

this may importation error. check here https://github.com/pkluz/pkrevealcontroller/blob/master/documentation/usage.md see how import correctly, if import static library make sure reproduce steps!


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -