iOS Code Snippet Show and record screen taps

Discussion in 'iOS Code Snippets' started by CaptKronos, Apr 27, 2019.

  1. CaptKronos

    CaptKronos Active Member Licensed User

    Whilst iOS has a nice built-in screen recorder it doesn't show screen taps. If you are using a local mac, an easy way (though a bit of a hack) to show the taps which are then recordable is:

    Download from and then export from the zip: QtouchposeApplication.h and QtouchposeApplication.m.

    Open your B4i app in Xcode and add the above two files to Xcode project.

    Change main.m to
    #import <UIKit/UIKit.h>

    #import "iCore.h"
    #import "QTouchposeApplication.h"

    int main(int argc, char * argv[])
        @autoreleasepool {
    return UIApplicationMain(argc, argv, NSStringFromClass([QTouchposeApplication class]), NSStringFromClass([B4IAppDelegate class]));
    and in QtouchposeApplication.m change:
    _alwaysShowTouches = NO;


    _alwaysShowTouches = YES;
    Now run the app and the taps will be visible.
    Erel and JackKirk like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice