Touch Timeout

Touch Timeout

[ad_1]

To get this product on 50 % low cost contact me on this link

 

LIVE PREVIEWBUY FOR $7

Kiosk timer displays system for contact so the app might be reset to the preliminary view each time not in use. The demo resets to a signup kind which customers should fill out to achieve entry to the app however you should use any view you need.

This is easy to implement and allows the flexibility to push a view mechanically after a specified time frame has lapsed with none consumer interplay.

Notes: The timer will begin anytime a contact is detected. This implies that if the consumer touches the primary display screen (in my case “mainView”) even with out navigating away from that view, the identical view will push over itself after the allotted time. Not a immense deal for my app, however for yours it could be. The timer will solely reset as soon as a contact is acknowledged. If you need to reset the timer as quickly as you get again to the web page you need to be at, embody this code after the …pushViewController:controller animated:YES];

When you obtain this undertaking you’ll get an entire demo which you can drop proper into any undertaking. Included you’ll discover the timer, in addition to a demo viewController, and demo information for every of the information you’ll want to switch with out your undertaking.

There are inline examples of tips on how to set this up utilizing a XIB viewcontroller or for those who choose to make use of Storyboards there may be some demo code for storyboards as nicely that you just’ll simply need to uncomment.

Not to fret, that is all coated with simple to comply with step-by-step directions in a readme.md file that you just’ll get whenever you obtain the undertaking. I extremely recommend that you just all the time completely learn by means of all of the documentation earlier than utilizing any code that you just obtain.

The offered step-by-step setup directions ought to have you ever up and operating in no quite a lot of minutes.

Step 1

Drop the kioskMode header and implementation file into your undertaking and open up the header file to line 10.

Set the next line to the period of time in minutes you need the timer to be set for.

outline kioskTimeout 4

That’s all it’s worthwhile to do in that file.

Step 2

Open up your undertaking help file predominant.m and add a line to import the kioskMode.h file and add it as a subclass to UIApplicationMain like this..

import “kioskMode.h”

int predominant(int argc, char *argv[]) {
    @autoreleasepool {
        return UIApplicationMain(argc, argv, NSStringFromClass([kioskMode class]), NSStringFromClass([AppDelegate class]));
    }
}

Step 3

Open up your AppDelegate.m file and import the kioskMode.h file and set it as much as monitor the occasion that will likely be triggered on timeout like this..

import “kioskMode_UIApplication.h”

- (BOOL) software : (UIApplication *)software didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{

return YES;
}

- (void) applicationDidTimeout : (NSNotification *) notif
{
    NSLog (@"timeout");
    // add view right here
}

To reset the timer manually you’ll be able to name this after pushViewController:

[ad_2]

To get this product on 50 % low cost contact me on this link

 

Source

Pomento
Logo
Register New Account
Compare items
  • Total (0)
Compare
0
Shopping cart