Latest 0.0.1
Homepage https://github.com/zshannon/ZCSHandedness
License MIT
Platforms ios 7.0, requires ARC
Authors

Apps can be made better if you can make a prediction about which hand in holding the device.

This is basically a toy at the moment. It’s functional, but highly unsophisticated. Seeking pull requests.

Add to your Podfile

pod 'ZCSHandedness', '~> 0.0.1'

Use in your project

Setup

#import "ZCSHandedness.h"

// Subscribe to hand change notifications
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handednessChanged:) ZCSHandednessDidChangeNotification object:[ZCSHandedness sharedHandedness]];

Target Action

- (void) handednessChanged:(NSNotification*) note {
    switch ([ZCSHandedness sharedHandedness].handedness) {
        case ZCSHandednessLeftHandedness:
            NSLog(@"I'm in the user's left hand!");
            break;
        case ZCSHandednessRightHandedness:
            NSLog(@"I'm in the user's right hand!");
            break;
        default:
            NSLog(@"I'm not sure which hand I'm in!");
            break;
    }
}

Contributing

Send me Pull Requests here, please.

Latest podspec

{
    "name": "ZCSHandedness",
    "version": "0.0.1",
    "summary": "ZCSHandedness tries to determine which hand the device is in.",
    "description": "                       ZCSHandedness tries to determine which hand the user is holding their device in, and sends you updates as that changes.n",
    "homepage": "https://github.com/zshannon/ZCSHandedness",
    "license": "MIT",
    "authors": {
        "Zane Shannon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zshannon/ZCSHandedness.git",
        "tag": "0.0.1"
    },
    "social_media_url": "https://twitter.com/zaneshannon",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "ZCSHandedness.{h,m}"
}

Pin It on Pinterest

Share This