Skip to content

Instantly share code, notes, and snippets.

View camh's full-sized avatar

Cam camh

  • Brooklyn, NY
View GitHub Profile
@camh
camh / tapOutset.m
Last active June 20, 2017 19:46
Enlarging tap area for a UIView subclass
//
// Make a UIEdgeInsets property on a subclass of UIButton
// - Make an instance of your subclass
// - Set it to a UIEdgeInset with negitive values
//
// button.tapAreaInsets = UIEdgeInsetsMake(-10, -10, -10, -10);
//
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event {
if(UIEdgeInsetsEqualToEdgeInsets(self.tapAreaInsets, UIEdgeInsetsZero) || !self.enabled || self.hidden) {

Keybase proof

I hereby claim:

  • I am camh on github.
  • I am camh (https://keybase.io/camh) on keybase.
  • I have a public key whose fingerprint is 501B E631 50DE 437B 9CF9 4599 A420 4EE8 1BDD 5401

To claim this, I am signing this object:

@camh
camh / gist:324d1c3d45a43a89538b
Created September 17, 2014 16:32
Rdio install error
Sep 17 12:27:32 Marty installd[40] <Error>: 0x101c54000 -[MICodeSigningVerifier performValidationWithError:]: 186: Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.lCfrhn/extracted/Payload/Rdio.app identifier = com.rdio.player type = 4> : 0xe8008019 (Application signature not valid)
Sep 17 12:27:32 Marty installd[40] <Error>: 0x101c54000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Sep 17 12:27:32 Marty itunesstored[83] <Error>: 0x101ef8000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.lCfrhn/extracted/Payload/Rdio.app identifier = com.rdio.player type = 4> : 0xe8008019 (Application signature not valid)" UserInfo=0x135a65300 {LibMISErrorNumber=-402620391, LegacyErrorString=Applicatio
#define logLine() NSLog(@"%@:%d", NSStringFromSelector(_cmd), __LINE__)
//
// EGOCache.h
// enormego
//
// Created by Shaun Harrison on 7/4/09.
// Copyright 2009 enormego. All rights reserved.
//
#import <Foundation/Foundation.h>