iOS Tutorials

B4XPages Tutorial Series

 

Background Fetch (Downloads)

Background fetch feature allows applications to run for a short period of time (up to 30 seconds) while in the background.

The steps required to use this service are:
1. Add the fetch mode...
 

Attachments

  • main.zip
    516 bytes · Views: 1,014
Last edited:

Background location tracking

iLocation library allows you to track the device location when your app is in the foreground.

Using the code posted in this tutorial you can mark your app as a special kind of app that requires...
 

Attachments

  • BackgroundLocation.zip
    2.6 KB · Views: 828
Last edited:

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

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

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:

BLE - Heart Rate Monitor

BLE Chat - Connecting Android and iOS


This example is based on the new PeripheralManager type introduced in iBLE v2.00.
Please start with this tutorial...
 

Attachments

  • BleCentral_B4i.zip
    3.3 KB · Views: 1,546
  • BleCentral_B4A.zip
    9 KB · Views: 793
  • BlePeripheral_B4i.zip
    2.9 KB · Views: 656
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,063

CalcRelativeKeyboardHeight Example

Attachments

  • KeyboardExample.zip
    5.8 KB · Views: 854
Last edited:

Can I use GCM on IOS

Hi,

Can I use the GCM on the b4i?

for example in B4A i have the code below, can I use the same concept on the b4i to make by the end exchanging the messages Android<=>IOS ?


B4X:
Sub...
 

change Imageview.Bitmap color

hi,

if you would like to change the color of your Imageview.Bitmap than you could just
do it like this:

B4X:
ImageView1.TintColor = Colors.RGB(Rnd(0,255),Rnd(0,255),Rnd(0,255))

but it seems...
 

Attachments

  • bmpcolor.zip
    65.1 KB · Views: 404
Last edited:

Compile As Library

B4i v3.50 adds support for library compilation. This is similar to the feature available in B4A and B4J...
 

Create shortcut on OSX to run self hosted builder

I am very new to B4i and one of the first things I wanted was a simple Windows style shortcut to launch the mac builder on my MacMini without having to open a terminal window then enter the...
 

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:

Creating a cross-platform "dialog" class with input validation

I'm currently developing an App that'll be released for Android and IOS. It presents files to the user, allows them to select a file and then presents the content for editing, and finally allows...
 

Attachments

  • iValiDialogs (0.02).zip
    177 KB · Views: 419
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:

Custom Dialogs with iCustomDialog library

Attachments

  • CustomDialogExample.zip
    3.7 KB · Views: 1,403
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,276

Design Guidelines

Top