iOS Tutorials

Add UIRefreshControl To CustomListView

Original Tutorial by @narek adonts

Create a standard class module (Let assume the name of the class is UIRefreshControl),
B4X:
Sub Class_Globals
    Private CSB As CSBuilder...
 
Last edited:

DeviceCheck - uniquely identify iOS device

Hi,

in this tutorial (intended for advanced B4i user) I want to demonstrate how you can use the DeviceCheck framework (introduced with iOS 11) in order to uniquely identify an iOS device. I...
 

Attachments

  • DC_ServerExample.zip
    418.2 KB · Views: 571
  • JWT.jar
    442.4 KB · Views: 469
  • DeviceCheckServer.bas
    3.4 KB · Views: 485
  • DC_AppExample.zip
    2 KB · Views: 482
  • DeviceCheck.bas
    1.3 KB · Views: 492

Notifications with actions

SS-2018-12-20_16.03.33.png


It is possible to add a list of actions to the push notifications. The list becomes visible when the user 3d touches the...
 

List of methods to access external resources or share to external apps

There are all kinds of ways to share files with other apps or access external resources. Here is a short summary of the available methods:

- ActivityViewController (iPhone library)...
 
Last edited:

Picking external documents with DocumentPickerViewController

SS-2018-11-15_16.16.20.png
]

iUI8 v1.60 adds a new type named DocumentPickerViewController. This picker allows the user to choose an external...
 

[B4X] CustomListView with multiple ImageSliders

Attachments

  • SlidersList.zip
    27 KB · Views: 1,129

Textchanged difference between B4a and B4i

All,

I found an interesting difference between the textchanged event in B4a and B4i.

In B4a, EditText1_TextChanged will fire whenever the text is changed whether by User or in code

In B4i...
 

Location Services Blue Bar

If you've used Location services on iOS you might have noticed that there's a blue bar showing when the app is in the background and using the GPS:

upload_2018-7-12_22-1-41.png



I noticed my app doesn't show...
 

iAdMob and User Consent

Attachments

  • PersonalizedAdConsent.bundle.zip
    6.2 KB · Views: 530
Last edited:

Fast arrays access

B4i v5.0 adds several methods to the Bit object that provide very fast access to arrays.

In most cases there is no reason to use these methods as they are more cumbersome and less safe than the...
 

[Deprecated][Tool] iWidget - add a today widget to your App

Important: This project is deprecated and should no longer be used!


iWidget is a (experimental) tool which allows you to add a today widget to your B4i app.
widget.PNG
...
 

Attachments

  • Modules.zip
    1.3 KB · Views: 928
  • WidgetHelloWorld.zip
    5.5 KB · Views: 915
Last edited:

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

ShowPage Animated

Based on @narek adonts answer here:

this is a ShowPage animation Code Module

B4X:
'Code module
Sub Process_Globals

End Sub

'Transition: 0 = cameraIris, 1 = cameraIrisHollowOpen, 2 =...
 

iOS error code

Hi

There is an official tutorial by Erel how to get info about ios error code from your analytics log. Its a little bit complex so i found a different easy way.

https://www.osstatus.com...
 

VideoPlayer - Replaces VideoView

iUI8 library v1.50 includes a new VideoPlayer view. It replaces VideoView from iMedia library.

Apple has deprecated the API that VideoView was based on. VideoPlayer is based on the newer...
 

Attachments

  • VideoPlayerExample.zip
    2.2 KB · Views: 1,196
Last edited:

Super small tutorial: Messing with #PlistExtra might get unrelated error

I was trying out what was possible to enter in #PlistExtra and tried adding a   to see if that worked:
B4X:
#PlistExtra:<key>NSLocationAlwaysUsageDescription</key><string>This is...
 

Quick Inline Objective-C Question

Just a quick question about inline Objective-C: Can I declare a variable outside of a method? This seems like a really basic question but I haven't use inline objective-c before and wanted to be...
 
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: 417
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...
 

Custom Dialogs with iCustomDialog library

Attachments

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