iOS Tutorials

Automating the iLibrary Creating with XCODE

The process to creating a B4i Library after build a objectiveC Code is:

Locating the .a and .h files, copy this files to a folder in a another folder with B4Ih2xml.jar and iCore.h

Execute the...
 

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

B4LinuxInstall script to use B4X tools in linux

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

Porting (game) from B4A > B4i and the differences

Hello,

Last night I ported a small game (CLAUStrophobia) from B4A > B4i just to get used to B4i & IOS and to know the differences in the B4i language & OS.

As I ran into some issues and some...
 
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: 734

iStore - In App Purchases

The iStore library allows you to use the store In-App Purchases features inside your app.
You can let the user purchase digital products from inside your app.

(Unsurprisingly) the configuration...
 
Last edited:

Design Guidelines

Inline Objective C code

B4i v1.80 adds support for inline Objective C code. This means that you can add Objective C code to your modules and they will be compiled together with all other code.
You can then use...
 

DrawBitmapRotated over ImageView

The latest version of my Face Flashcards app (waiting for review) had one issue that was nagging me. I had used the designer to create an imageview called "flashCards", for which a randomly...
 

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: 683
  • SettingsExample.zip
    2 KB · Views: 717
Last edited:

How to "Screenrecording"

You can record the screen of your device for free.
what you will need is an IOS8+ device and OS Yosemite on your mac

 

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: 824
  • LLCameraExample.zip
    3.4 KB · Views: 772
Last edited:

Push notifications

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:

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

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

Workaround for strange pause during installation

In the last week or two I encountered a strange pause which happened during full installations.

There were two symptoms:
1. The installation paused for a few seconds after it started.
2. It took...
 

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:

Loading B4i on Mac with Parallels and Windows 7

Thought I'd share this sequence of tasks on how to set up B4i from scratch - hope it helps anybody just starting.

1. Windows

1.1 Create a Keys Folder e.g. C:\Users\User1\Documents\B4i\Keys

1.2...
 
Top