I hereby claim:
- I am timd on github.
- I am timduckett (https://keybase.io/timduckett) on keybase.
- I have a public key whose fingerprint is E2F8 8A13 E453 B507 F15D EF4B D8D5 3D9C 4C82 37DF
To claim this, I am signing this object:
(void)handlePan:(UIPanGestureRecognizer *)panRecognizer { | |
CGPoint locationPoint = [panRecognizer locationInView:self.collectionView]; | |
if (panRecognizer.state == UIGestureRecognizerStateBegan) { | |
NSIndexPath indexPathOfMovingCell = [self.collectionView indexPathForItemAtPoint:locationPoint]; | |
UICollectionViewCell *cell = [self.collectionView cellForItemAtIndexPath:indexPathOfMovingCell]; | |
UIGraphicsBeginImageContext(cell.bounds.size); |
I hereby claim:
To claim this, I am signing this object:
if(![managedObjectContext save:&error]) { | |
NSLog(@"Failed to save to data store: %@", [error localizedDescription]); | |
NSArray* detailedErrors = [[error userInfo] objectForKey:NSDetailedErrorsKey]; | |
if(detailedErrors != nil && [detailedErrors count] > 0) { | |
for(NSError* detailedError in detailedErrors) { | |
NSLog(@" DetailedError: %@", [detailedError userInfo]); | |
} | |
} | |
else { | |
NSLog(@" %@", [error userInfo]); |
-(IBAction)didSwipeLeftInCell:(id)sender { | |
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn]; | |
[UIView animateWithDuration:1.0 animations:^{ | |
[_topView setFrame:CGRectMake(-10, 0, 320, 80)]; | |
} completion:^(BOOL finished) { | |
[UIView animateWithDuration:0.15 animations:^{ | |
[_topView setFrame:CGRectMake(0, 0, 320, 80)]; | |
}]; | |
}]; | |
} |
-(IBAction)didSwipeLeftInCell:(id)sender { | |
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn]; | |
[UIView animateWithDuration:1.0 animations:^{ | |
[_topView setFrame:CGRectMake(-10, 0, 320, 80)]; | |
} completion:^(BOOL finished) { | |
[UIView animateWithDuration:0.15 animations:^{ | |
[_topView setFrame:CGRectMake(0, 0, 320, 80)]; | |
}]; | |
}]; | |
} |
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier | |
{ | |
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; | |
if (self) { | |
// Initialization code | |
// Create the top view | |
_topView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, 80)]; | |
[_topView setBackgroundColor:[UIColor whiteColor]]; | |
-(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate { | |
CGFloat contentOffsetY = scrollView.contentOffset.y; | |
if (contentOffsetY < -60.0) { | |
[self displayActivitySpinner]; | |
} | |
} |
-(void)takeSimulatorSafePhotoWithPopoverFrame:(GCRect)popoverFrame { | |
// Prerequisites: | |
// | |
// Class requires two properties to be defined: | |
// | |
// @property (nonatomic, strong) UIImagePickerController *imagePicker; | |
// @property (nonatomic) BOOL usingPopover; | |
// Load the imagePicker |
# Mac OS X | |
*.DS_Store | |
# Xcode | |
*.pbxuser | |
*.mode1v3 | |
*.mode2v3 | |
*.perspectivev3 | |
*.xcuserstate | |
project.xcworkspace/ |
Thonburi | |
"Thonburi-Bold", | |
Thonburi | |
Snell Roundhand | |
"SnellRoundhand-Bold", | |
"SnellRoundhand-Black", | |
SnellRoundhand | |
Academy Engraved LET |