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

Fix rotation share dialog controller #514

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

constZinovyev
Copy link

В текущей версии VKShareDialogController меняет ориентацию, независимо от поведения самого приложения. Из-за этого при смене ориентации во время sharing возникают баги с некорректным поведением приложения.

}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return YES;
return [self.parentViewController shouldAutorotateToInterfaceOrientation:toInterfaceOrientation];
Copy link
Contributor

Choose a reason for hiding this comment

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

Тут тогда тоже нужна проверка на наличие self.parentViewController, по идее.

Copy link

Choose a reason for hiding this comment

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

@suzhaev, реально ли показать VKShareDialogController без parentController'a?

@Usipov
Copy link

Usipov commented Nov 30, 2017

@suzhaev, @constZinovyev, что с ПР?

@Usipov
Copy link

Usipov commented Dec 1, 2017

@constZinovyev, I simply subclassed VKShareDialogController and tuned rotation preferences as needed

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.

3 participants