iOS Question B4A to B4I

Discussion in 'iOS Questions' started by pablovidal, Nov 12, 2014.

  1. pablovidal

    pablovidal Member Licensed User

    Hi Erel,

    If I have an application in the B4A I can pass B4i

    Thank you
     
  2. klaus

    klaus Expert Licensed User

    No. Because Android and iOS are different operaring systems.
    The program flow is different, some views are similar but others are different, so you need to rewrite the code for those.
    Almost all code not in relationship with the operating system can be imported without changes.
     
  3. stevel05

    stevel05 Expert Licensed User

    I am in the middle of porting a small app. As Klaus said, Android and IOS are two different beasts, once you start to get to grips with the ios program structure it's really not that difficult. Erel has done a great job on the one for one views and functions, which makes it easier for someone who knows B4a to get to grips with B4i.
     
    gmilias likes this.
  4. LucaMs

    LucaMs Expert Licensed User

    A good idea for a great programmer who has B4I (ie not me, both requirements :D):

    a tool to convert from B4A to b4i
     
  5. ilan

    ilan Expert Licensed User

    its almost the same, only small changes are needed so the convert from b4a to b4i should be very simple (if you dont use any special libs of course)
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Note that you can also use conditional compilation directives to share the exact same modules:
    Code:
    #If B4A
    'b4a specific code
    #End If

    #If B4i
    'b4i specific code
    #End If
    There is also a new keyword in B4i named IsDevTool:
    Code:
    If IsDevTool("B4i"Then Log("b4i")
    This keyword will be added to B4A and B4J as well. It is useful when the code is compatible between all platforms.
     
  7. b2mvga

    b2mvga Member Licensed User

    How B4i works with databases? This use SQlite too?

    The same code to acces a SQlite database (Select, Cursor, etc) works in B4i?
     
  8. Erel

    Erel Administrator Staff Member Licensed User

  9. Kwame Twum

    Kwame Twum Active Member Licensed User

    Does B4i work with remote databases?
    Like MSSQL and MySQL.
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    You can use the same solutions as in B4A: RDC or a web service (PHP, ASP .Net).
     
    Kwame Twum likes this.
  11. Kwame Twum

    Kwame Twum Active Member Licensed User

    great, purchasing soon... hope I don't face a similar issue I faced during the B4A purchase ;)
     
  12. Mark Turney

    Mark Turney Active Member Licensed User

    As soon as I complete my B4A app, I'm buying this to get the other half of the app market...:)!!

    Thanks for developing this Erel!!
     
  13. BarrySumpter

    BarrySumpter Active Member Licensed User

    Congratulations!

    I know I asked about an iOS version of B4A a few years ago.
    Well done!
    Will the B4A objects work in B4i?
    Or do we have to wait for the original developers to convert?

    I tried to get out of development but this might bring me back in.

    Wishing you all the very best in your B4i endeavours!
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    Do you mean B4A library? They will not work with B4i.
     
  15. santiago

    santiago Member Licensed User

    Can we deploy services in v4I in the same way we do in v4A?
    I explain : Can we develop apps to IOS running background services using v4i the same like Android using v4A?
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    Normal iOS applications cannot run in the background (there are no services in iOS).
     
  17. ViMeAv ICT

    ViMeAv ICT Member Licensed User

    I'm having a B4a app using the following libraries:
    animation, b4azxing, byteconverter, core (v.3.80), IME, JSON, PDF, Phone,
    RandomaccesFile, Reflection, Scrollview2D, SMB, SQL, Stringfunctions.

    Is this possible to port into ios apps?
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this question and post the features that you are using not the libraries.
     
  19. Gary Milne

    Gary Milne Active Member Licensed User

    My app is 16,000 lines in B4A and I'm going to port it over to B4I. Never having done this I don't know what percentage of the code will be common and what will be unique. For an app this size do you think it would be practical to share the code base and use #If B4A \ #If B4I? I notice you opted not to take that approach for things like DBUtils and KeyValueStore. What approach would you recommend?
     
  20. Erel

    Erel Administrator Staff Member Licensed User

    You should find the modules that can be shared between the two projects and put them in the shared modules folder. Then you should use the conditional compilation symbols when you need make modifications based on the platform.

    For the main UI related modules it is probably better not to share the same module.
     
Loading...