B4X FEED How to pass data to inline objective C

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: How to pass data to inline objective C است. این موضوع تا کنون 26 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع How to pass data to inline objective C
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
26
پسندها
0
آخرین ارسال توسط PracticalSoft
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...



 

عقب
بالا