iOS Question Method not found: audiovol_hide

D

Deleted member 103

Guest
Hi,

I use this code-snippet in 2 apps. The first one works without problems, the second one gives me these error messages:
Application_Start
<B4IExceptionWrapper: Error Domain=caught_exception Code=0 "Method not found: audiovol_hide, target: <b4i_main: (null)>" UserInfo={NSLocalizedDescription=Method not found: audiovol_hide, target: <b4i_main: (null)>}>
Page1_Resize
<B4IExceptionWrapper: Error Domain=caught_exception Code=0 "Method not found: audiovol_set:, target: <b4i_main: (null)>" UserInfo={NSLocalizedDescription=Method not found: audiovol_set:, target: <b4i_main: (null)>}>
Application_Active
Why are not these 2 sub found? They are certainly available.

OK, the problem is this code:

B4X:
#if OBJC
@end
@interface UINavigationController (B4IResize)

@end
@implementation UINavigationController (B4IResize)
- (BOOL)shouldAutorotate
{
  return [(NSNumber*)[B4IObjectWrapper raiseEvent:self :@"_shouldautorotate" :nil] boolValue];
}

#End If

If I comment out this code then the 2 sub found.
But I'm not allowed to comment out the code, I need the code.
What should I do? :(
 
Top