Skip to content

Easy to use API for Spring Mobile App Sensor (aka ÖWA Mobile App Sensor)

Notifications You must be signed in to change notification settings

PocketScientists/PSCSpringKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSCSpringKit

Easy to use API for Spring Mobile App Sensor (aka ÖWA Mobile App Sensor)

Integration

1. Create the shared SpringKitManager object:

The hitTestClasses-Array defines on which classes and subclasses a count should performed when an object of them is tapped. So in the most cases it's enough to let PSCSpringKitManager react on UIControl and subclasses.

Best time to create the PSCSpringKitManager is in application:didFinishLaunchingWithOptions:

NSArray *hitTestClasses = @[
    [UIControl class],
    [MyViewToCheckForTouches class]
];
[PSCSpringKitManager createSharedSpringKitManagerWithSite:@"mySite" application:@"myApplication" path:@"myPath" hitTestClasses:hitTestClasses];

2. Change UIWindow to PSCSpringKitWindow

The PSCSpringKitWindow class overrides the hitTest:withEvent: function to check all touches so you need to change your UIWindows to PSCSpringKitWindow. For example you can do that in application:didFinishLaunchingWithOptions:

self.window = [[PSCSpringKitWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
// do any additional window initialization (e.g. setRootViewController)
[self.window makeKeyAndVisible];

Add to your project

  1. Add PSCSpringKit.xcodeproj as subproject.
  2. Add PSCSpringKit's root folder to your project's header search paths.
  3. Add PSCSpringKit to your Target's dependencies (Target >> Build Phases >> Target Dependencies).
  4. Add PSCSpringKit to your Target's linked frameworks (Target >> Summary >> Linked Frameworks and Libraries).
  5. Import "PSCSpringKit.h" either in Prefix.pch or seperatly in any file you use it.

Spring Mobile App Sensor

The static library "spring-appsensor-fat-oewa.a" (Version 1.1.2) included is created by spring GmbH & Co KG. For more information about the library take a look at Spring's Project Website.

Credits

PSCSpringKit was created by Manfred Scheiner (@scheinem - scheinem.com).

License

PSCSpringKit is available under the MIT license. See the LICENSE file for more info. For usage without attribution contact PocketScience GmbH.

About

Easy to use API for Spring Mobile App Sensor (aka ÖWA Mobile App Sensor)

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •