D Deleted member 103 Guest Jun 23, 2018 #1 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 Click to expand... 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?
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 Click to expand... 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?
Erel B4X founder Staff member Licensed User Longtime User Jun 24, 2018 #2 Add this code after any other inline code. Upvote 0