iOS Tutorials

BarButton icons

upload_2016-12-15_17-2-41.png


Adding icons to labels and buttons is very simple as explained here: https://www.b4x.com/android/forum/threads/b4x-fontawesome-material-icons-fonts.72908/#content

You can use...
 

Attachments

  • FontAwesome.zip
    168.9 KB · Views: 1,470

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

Designer Script & AutoScale tutorial

Designer script feature allows you to write simple scripts that manage the user interface in the visual designer.

The main advantage of the scripts over the program code is that you can see the...
 

Background playback

This tutorial explains how you can play local audio files or stream audio while your app is in the background.
Standard applications are killed when moved to the background. However you can add...
 

Attachments

  • BackgroundPlayback.zip
    3.7 KB · Views: 548
Last edited:

BLE (Bluetooth Low Energy) Peripheral

There are two types of devices involved in BLE communication: peripheral devices and central devices.

Peripheral devices: heart rate monitors, beacons, Arduino with HM 10 module, etc.
Central...
 
Last edited:

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

ATS - App Transport Security

ATS is a security feature that prevents applications to make non-ssl http connections. This means that when ATS is enabled applications can only access https urls.

Starting from 1/1/2017, ATS...
 
Last edited:

Share data from your app with ActivityViewController

upload_2016-11-17_9-57-25.png


ActivityViewController allows the user to share data from your app using the standard share dialog.
It was added in iPhone library v2.00.

Using it is simple. You need to...
 
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...
 

AdMob Ads Mediation (with InMobi)

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:

FloatLabeledEditText (iUI8)

SS-2016-02-29_10.40.03.png


iUI8 v1.20 includes a new view named FloatLabeledEditText. It is a modified TextField that instead of hiding the...
 

Visual Designer

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

LLCamera - Low level camera access

iMedia library v1.10 includes a new type of object named LLCamera. LLCamera provides low level camera access, similar to B4A Camera library. If you just want to allow the user to take a...
 

Attachments

  • CCTV-Client-B4i.zip
    4.4 KB · Views: 835
  • LLCameraExample.zip
    3.4 KB · Views: 786
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: 744

DropboxSync Tutorial

Dropbox has dropped support for this API. It doesn't work anymore.

The iDropboxSync library allows you to use Dropbox Sync service to manage an app specific folder inside the user Dropbox...
 

Attachments

  • DropboxSync.zip
    52.2 KB · Views: 618
Last edited:

AdMob - Rewarded video ads

AdMob v1.50 (included in B4i v3.0) adds support for rewarded video ads.

Rewarded video ads are video ads where the user is rewarded if he watches the full video.
How is the user rewarded is up...
 

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

iPhone X Safe Area

SS-2018-01-09_10.41.31.png


As you can see in the above image, the screen area near the top and bottom are considered unsafe. Meaning that you...
 

Attachments

  • iPhoneX.zip
    4 KB · Views: 731
Last edited:
Top