uppaljs / siphon

Automatically exported from code.google.com/p/siphon
0 stars 1 forks source link

[self.tabBarController presentModalViewController:callViewController animated:YES]; breaks in IOS 5 #558

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile and run the code on IOS 5 
2. Call the phone over SIP 

What is the expected output? What do you see instead?

The answer screen pops up, it crashes with the error:

"Application tried to present modally an active controller"

I looked into this and found this stackoverflow post: 
http://stackoverflow.com/questions/948023/presenting-modal-view-occasionally-hid
es-the-navigation-bar

and changed the line from:

[self.tabBarController presentModalViewController:callViewController 
animated:YES];

to:

 UINavigationController *cntrol = [[UINavigationController alloc] initWithRootViewController:callViewController];
          [tabBarController presentModalViewController:cntrol animated:YES];
          [cntrol release];

in SipphonApplication.m around line 910.

This kind of fixes the issues, it allows the answer window to pop, minus a top 
bar that pushes the buttons down but it otherwise works, I'm sure this isn't 
the best solution, but it gets it workable for now. Thanks!

Shaun

Original issue reported on code.google.com by shaun.cl...@a-cti.com on 10 Jan 2012 at 10:04