When I use the method below for Twitter Login:
[[Twitter sharedInstance] logInWithCompletion:^(TWTRSession *session, NSError *error) {
if(session)
{
NSLog(@"=====Twitter=====userId: %@",[session userID]);
}
else
{
NSLog(@"=====Twitter=====error: %@",[error localizedDescription]);
}
}];
It crash on ios devices,
-[AppController window]: unrecognized selector sent to instance 0x1c2bfd0
libc++abi.dylib: terminate_handler unexpectedly threw an exception
Do anyone know how to solve it, thank you.