- Jun 6, 2020
- 11,559
- 4,422
I am trying to alter some inline Objective C code to handle programmatically preventing orientation change (the original code crashes on startup in release mode. but works in debug mode). The problem is related to views/variables not being ready. What I want to do is to set a variable when the views become available after launch. I can't pass this data as a parameter, because the original sub is called as an event.
I can see some solutions, but I could not find examples in the forum.
Here are possibilities. I have searched the forums, but was unable to find any examples. If you know of any examples of how to do any of the following, that would solve my problem.
1). Run an Objective C sub (called from b4i) to set a global variable accessible to the inline code. I try to do this in the example below, but it crashes.
2). Access a global variable in the b4i module from the Objective C code.
3). Call a B4i sub from the Objective C code and return true or false if the...
I can see some solutions, but I could not find examples in the forum.
Here are possibilities. I have searched the forums, but was unable to find any examples. If you know of any examples of how to do any of the following, that would solve my problem.
1). Run an Objective C sub (called from b4i) to set a global variable accessible to the inline code. I try to do this in the example below, but it crashes.
2). Access a global variable in the b4i module from the Objective C code.
3). Call a B4i sub from the Objective C code and return true or false if the...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید