iOS Tutorials

Installing B4i-Bridge and debugging first app

B4i-Bridge is an application that you install on the device.
It has three purposes:
1. Launch the installation process when needed. This step is done with Apple Configurator 2 if using a local...
 
Last edited:

Creating a certificate and provisioning profile

Don't panic!
While this process can be a bit annoying it is not too complicated and you can always delete the keys and start from scratch (which is not always the case in Android).

Note that you...
 
Last edited:

Application life cycle

The life cycle of iOS applications is quite simple.

The two most important events are Application_Start and Application_Background.

The standard way to start an application is by clicking on its...
 

Static Modules and Classes

There are two types of modules in B4i: static modules and classes.

A class is a template. At runtime you can create any number of instances based on the class template.
Each instance will have...
 

Layouts, Pages and ViewControllers

The user interface is made of three logical layers: layouts, pages and views controllers.

A layout is a set of views. You can create a layout with the visual designer or by code.
You can load...
 

Visual Designer

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,258

Files and Folders

In iOS each application can only access its own private folders. There is no shared location such as File.DirRootExternal in Android.

iOS file system is case sensitive.

There are several...
 

Attachments

  • iTunesFileSharing.zip
    4.3 KB · Views: 954
Last edited:

iMedia library - Camera and VideoView

VideoView is an object that makes it quite simple to play local or remote videos.

The most important thing to remember about VideoView is that the object itself is not a View (unlike in...
 

Attachments

  • CameraExample.zip
    3 KB · Views: 950
Last edited:

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,306
Last edited:

Bouncing smilay - Drawing with Canvas

A Canvas object allows you to draw over a view.

Canvas.Initialize expects a single parameter which is the target view.

You can then use the different drawing methods to draw over the view...
 

Attachments

  • Smiley.zip
    4.7 KB · Views: 1,058

Animations

It is very simple to add nice animation effects to your layout. Animations are important. It makes it easier for the user to track the layout changes.

By default, when a layout is loaded (or...
 

Attachments

  • Animations.zip
    3 KB · Views: 969

Local Mac Builder Installation

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

Custom Fonts

In order to add custom font files to your application you need to follow these instructions:
1. Add the font file to the "special" folder: <project>\Files\Special
2. Add the #AppFont attribute for...
 

Attachments

  • CustomFonts.zip
    54.9 KB · Views: 1,268

Scheduling local notifications

There are two ways for your app to notify the user while the app is in the background: push notifications and local (or scheduled) notifications.

This tutorial explains how to create local...
 

Attachments

  • LocalNotifications.zip
    2.6 KB · Views: 1,259
Last edited:

[example] Coordinates Calculator source code

Attachments

  • Coordinates.zip
    55.5 KB · Views: 1,732

Some findings about graphics and pixels

I begun 'learning' graphics in B4i, and found some differences between B4a and B4i based on an iPhone 6:

- There are no 'dip' values in B4i (perhaps not yet ?)

- On my iPhone 6...
 

Attachments

  • Drawing.zip
    2.7 KB · Views: 537
Last edited:

Tutorial for PC

hello,
Is there a tutorial that explains step by step how to install B4i on a PC. Should we install Java and what libraries to install (because it requires the path). And after?
Thank you
 

B4X Help Viewer

Attached you find a B4x Help Viewer.
The original program was written by Andrew Graham (agraham) for B4A with Basic4PPC desktop.
Andrew is no more active in the forum and some time ago I...
 

Attachments

  • B4xHelpV3_0.zip
    211.1 KB · Views: 2,419
  • B4XHelpV3_1.zip
    209.3 KB · Views: 1,841
  • B4XHelpV3_4.zip
    223.8 KB · Views: 75
Last edited:

GoogleMaps Tutorial

The iGoogleMaps library allows you to show a map inside your app:

SS-2014-11-17_09.18.50.png


It is similar to B4A GoogleMaps library.

1. In order...
 
Last edited:
Top