Skip to content

Instantly share code, notes, and snippets.

@HeidiHansen
Last active August 29, 2015 14:06
Show Gist options
  • Save HeidiHansen/6c4b7cab8848ed64ad1a to your computer and use it in GitHub Desktop.
Save HeidiHansen/6c4b7cab8848ed64ad1a to your computer and use it in GitHub Desktop.
12. in TH's THConversationShareViewController.m, starting at line 222
- (void)doPreviewImageGesture:(UIGestureRecognizer *)gesture {
if (gesture.state != UIGestureRecognizerStateRecognized) {
return;
}
if ([THFeature isOn:kTHFeatureImageShareEdit]) {
[[Mixpanel sharedInstance] track:@"Share Image Preview Tapped"];
}
[self.conversationShareView.textView resignFirstResponder];
//Flatiron code:
self.editViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
self.editViewController.delegate = self;
if (!self.editViewController.imageToProcess) {
self.editViewController.imageToProcess = self.conversationShareView.previewImageView.image;
}
UINavigationController *editNavController = [[UINavigationController alloc]initWithRootViewController:self.editViewController];
//TH code commented out: controller.hidingWatermark = YES;
//TH code commented out: controller.showsEditButton = [THFeature isOn:kTHFeatureImageShareEdit];
[self presentViewController:editNavController animated:YES completion:nil];
}
@HeidiHansen
Copy link
Author

This is the only section of code from the original TH app files that we modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment