Skip to content

Fix rotation share dialog controller#514

Open
constZinovyev wants to merge 1 commit into
VKCOM:masterfrom
constZinovyev:fix-rotation-share-controller
Open

Fix rotation share dialog controller#514
constZinovyev wants to merge 1 commit into
VKCOM:masterfrom
constZinovyev:fix-rotation-share-controller

Conversation

@constZinovyev

Copy link
Copy Markdown

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


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

Copy link
Copy Markdown
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
Copy Markdown

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

Usipov commented Nov 30, 2017

Copy link
Copy Markdown

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

@Usipov

Usipov commented Dec 1, 2017

Copy link
Copy Markdown

@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