iOS Tutorials

TableView with custom items

iTableView v1.20 adds support for custom items.

Each TableCell includes a CustomView property. You can set a Panel with views to this property and the panel will be added to the cell...
 

Attachments

  • TableViewWithCustomItems.zip
    4.2 KB · Views: 1,469

Reading and Writing PDF Documents

SS-2014-12-17_14.51.55.png


iOS has built-in support for reading and writing PDF documents.

The Canvas object allows us to display existing PDF...
 

Attachments

  • PDFReader.zip
    2.5 KB · Views: 1,746

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:

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

ActivityClass: A cross-platform development class and strategy for b4i/b4a

This is not an official tutorial and is just one option for developing cross platform apps with b4x. I have found it to work very well in creating cross platform apps that share their code base...
 

Attachments

  • TableExample_Cross_Platform.zip
    285.3 KB · Views: 510
  • screenshot.png
    screenshot.png
    16.4 KB · Views: 604
  • screenshot.png
    screenshot.png
    25.5 KB · Views: 593
  • b4x_drawer_starter.zip
    316.4 KB · Views: 476
  • ActivityClass.bas
    3.5 KB · Views: 381
  • cross_platform_starter_1.2.zip
    276 KB · Views: 382
Last edited:

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: 689
  • SettingsExample.zip
    2 KB · Views: 728
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: 804
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,264

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: 967

iBeacons

iBeacons are small, low powered peripherals, that use BLE (Bluetooth Low Energy) to advertise their information.

The BeaconParser class can be used together with the BLE library to search...
 

Attachments

  • iBeacon.zip
    3.1 KB · Views: 584

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,413
  • B4XHelpV3_1.zip
    209.3 KB · Views: 1,834
  • B4XHelpV3_4.zip
    223.8 KB · Views: 68
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...
 

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

B4i Beginner's Guide

This guide is obsolete ! It is no more updated.
Please use the B4X Booklets.


Here is a B4i Beginner's Guide in pdf format.

The source code for the example programs is included.
It's...
 
Last edited:

Custom Dialogs with iCustomDialog library

Attachments

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

How to add launch images in B4i

HI everybody, it will be interesting to know how to add launch images on a IOS app?

Here is Apple guidance...
 

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,254
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,555
Top