Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 28 nytphotosviewcontroller crashes on tapping share button on ipad #52

Conversation

heikkihautala
Copy link
Contributor

No description provided.


- (void)displayActivityViewController:(UIActivityViewController *)controller animated:(BOOL)animated {

if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the if statements in this method to have whitespace between the if and the ( to conform to the Times Objective-C Style Guide?

Thanks!

@heikkihautala heikkihautala force-pushed the issue-28-nytphotosviewcontroller-crashes-on-tapping-share-button-on-ipad branch from f650c00 to c147cb7 Compare May 11, 2015 05:12
@heikkihautala
Copy link
Contributor Author

Thanks @Twigz, white spaces fixed :)

}
else {
// iOS 7
_activityPopoverController = [[UIPopoverController alloc] initWithContentViewController:controller];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heikkihautala is there a particular reason you're using the instance variable here rather than using self.activityPopoverController as a property?

@heikkihautala heikkihautala force-pushed the issue-28-nytphotosviewcontroller-crashes-on-tapping-share-button-on-ipad branch from c147cb7 to a491d10 Compare May 13, 2015 04:35
@heikkihautala heikkihautala force-pushed the issue-28-nytphotosviewcontroller-crashes-on-tapping-share-button-on-ipad branch from a491d10 to 1d00753 Compare May 13, 2015 04:36
@heikkihautala
Copy link
Contributor Author

Good points @bcapps! PR updated :)

@cdzombak
Copy link
Contributor

This looks good to us. Thanks, @heikkihautala!

closes #28.

cdzombak added a commit that referenced this pull request May 13, 2015
…oller-crashes-on-tapping-share-button-on-ipad

Issue 28 nytphotosviewcontroller crashes on tapping share button on ipad
@cdzombak cdzombak merged commit 1cc78e8 into nytimes:develop May 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants