I make VOIP
app and for side menu, i used jonkykong/SideMenu
side menu in swift.
I have the following issue :
1)open side menu
2) Any person calling gets that time I push my call view controller but display "Black Screen".
So how to resolve this issue?
Code For push view:-
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main"
bundle:nil]; CallViewController *Callview =(CallViewController *)
[storyboard
instantiateViewControllerWithIdentifier:@"CallViewController"];
if(SharedAppDelegate.GlobalContactArray.count > 0)
{
Callview.ContactArray = SharedAppDelegate.GlobalContactArray;
}
CATransition *transition = [CATransition animation];
transition.duration = 0.3; transition.type = kCATransitionFromLeft;
UINavigationController *navController = (UINavigationController *)
[[[UIApplication sharedApplication] keyWindow] rootViewController];
[navController.view.layer addAnimation:transition
forKey:kCATransition];
[navController pushViewController:Callview animated:NO];
if anyone has a solution for that then please help me.
Thank you.