iOS Tutorials

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

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...
 

FirebaseAuth - Authenticate your users (Google + Facebook)

Attachments

  • FirebaseAuthGoogle.zip
    26.5 KB · Views: 1,248
  • iFirebaseAuth.zip
    69.6 KB · Views: 553
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:

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: 953
Last edited:

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

Open external files with your app

Last edited:

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...
 

Silent Push Notifications

This tutorial explains how you can use push notifications that don't show any visual cue to the user and start your app in the background for a limited time (up to 30 seconds).
You can use it for...
 
Last edited:

Installing apps with Apple Configurator 2

Starting from B4i v7.20 it is possible to install apps, when the iOS device is physically connected to a local Mac, using Apple Configurator 2.
It is supported by all iOS versions and is a must...
 
Last edited:

Firebase Integration

B4i v2.80 adds support for Firebase backend: https://firebase.google.com

The libraries are mostly the same as the B4A Firebase libraries.

Configuration

1. Create an iOS application...
 
Last edited:

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...
 

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

Adding your settings to the default Settings app

By following the steps in this tutorial you can allow users to configure the various app settings in the default Settings app...
 

Attachments

  • SettingsCreator.jar
    246.5 KB · Views: 690
  • SettingsExample.zip
    2 KB · Views: 730
Last edited:

Custom Dialogs with iCustomDialog library

Attachments

  • CustomDialogExample.zip
    3.7 KB · Views: 1,398
Last edited:

CSBuilder - AttributedStrings builder

AttributedStrings are strings with additional styling information.
CSBuilder is a new type added in B4i v4.00 which helps with creating such strings. It is an alternative to iRichString class...
 
Last edited:

Icons and Launch Images

This tutorial is relevant for B4i v4.40+.

App icons

iOS apps require a wide range of icon sizes. Starting from 20x20 and up to 1024x1024.

B4i will create all icons automatically based on...
 

iUI8 library

(this library is part of B4i v2.50)
The iUI8 library includes several UI features that are only supported by iOS 8+.
The following line should be added when using this library:
B4X:
#MinVersion...
 

Swift libraries

B4i supports libraries written in Swift and compiled as frameworks.
Note that adding swift frameworks makes the compilation process considerably more complicated and it is recommended to avoid...
 
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,258
Top