iOS Tutorials

Porting (game) from B4A > B4i and the differences

Hello,

Last night I ported a small game (CLAUStrophobia) from B4A > B4i just to get used to B4i & IOS and to know the differences in the B4i language & OS.

As I ran into some issues and some...
 
Last edited:

Picking external documents with DocumentPickerViewController

SS-2018-11-15_16.16.20.png
]

iUI8 v1.60 adds a new type named DocumentPickerViewController. This picker allows the user to choose an external...
 

PageViewController

PageViewController is a pages controller (similar to NavigationController and TabBarController) that allows the user to switch pages with a swipe gesture. It is similar to B4A ViewPager.

Using...
 

Attachments

  • PageViewController.zip
    4.5 KB · Views: 1,491

Open local files with external apps

iPhone library v1.40 includes a new object type named DocumentInteraction.

With this controller you can allow the user to open a local file with an external app (this is the other side of...
 

Open external files with your app

Last edited:

Notifications with actions

SS-2018-12-20_16.03.33.png


It is possible to add a list of actions to the push notifications. The list becomes visible when the user 3d touches the...
 

New way to upload ipa to App Store

I just found out that Application Loader is no longer exist or missing from the latest XCode 11.5 or 11.6 so to upload our B4i app, we need to download Transporter from the App Store.
1598364121883.png
...
 

New iOS device - This app cannot be installed because integrity could not be verified

I've just wasted a bit more time than expected, installing B4i-Bridge on a new iPhone.

A few tips:
1. Enable developer mode: Settings - Privacy & Security - scroll down - Developer Mode
2. Don't...
 

Multiple Pages Example

This example demonstrates how you can use a different code module for each page.

B4i structure (like B4J) is very flexible. Pages are regular objects like all other objects. You can use a single...
 

Attachments

  • ThreePages.zip
    7 KB · Views: 2,555

multiple modes in plist

I wanted my program to run in the background. (Ios requires an addition to the plist, android requires addition to the manifest) It includes both location and audio. You can find out how to do...
 
Last edited:

Monitor the device attitude (orientation) and acceleration with Motion object

iPhone library v1.30 includes a new type named Motion. With this object you can monitor the device orientation and acceleration (similar to B4A PhoneSensors).

The Motion object doesn't raise...
 

Attachments

  • MotionExample.zip
    4.1 KB · Views: 743

MJPEG / CCTV Server

Attachments

  • CCTV.zip
    3.9 KB · Views: 803
Last edited:

Managing multiple certificates / provision files

This tutorial is only relevant after you were able to build and install B4i-Bridge.
If you haven't yet started with B4i then please go over these two tutorials instead:
Creating a...
 
Last edited:

Mails and SMS messages

MailComposer and MessageComposer types from the iPhone library allow the user to send mails and SMS messages from your app. The users will see a pre-filled form which they can modify and send...
 

Attachments

  • Composers.zip
    1.5 KB · Views: 1,255

Location Services Blue Bar

If you've used Location services on iOS you might have noticed that there's a blue bar showing when the app is in the background and using the GPS:

upload_2018-7-12_22-1-41.png



I noticed my app doesn't show...
 

Location & GPS

The iLocation library allows you to get the current known location and to monitor location updates. You can also monitor the device heading direction.

As the location is considered a private...
 

Attachments

  • LocationExample.zip
    3.5 KB · Views: 2,295
Last edited:

LocalNotifications for iOS

Hello,

I have tested LocalNotifications.zip for iOS, but i don't see the notification.
I have not error, nothing happens.

I send you a link below to see this problem...
 

Local Mac Builder Installation

Edit: Apple Configurator 2 must be used when using a local Mac:
iOS compilation...
 
Last edited:

Loading B4i on Mac with Parallels and Windows 7

Thought I'd share this sequence of tasks on how to set up B4i from scratch - hope it helps anybody just starting.

1. Windows

1.1 Create a Keys Folder e.g. C:\Users\User1\Documents\B4i\Keys

1.2...
 

Load HTML to Label

(Here is the Android version)
This is how you can set HTML data to Label,

B4X:
Public Sub SetHTML(l As Label, htmlString As String)
    Dim NaObj As NativeObject = Me...
 
Last edited:
Top