Manni
Manni

Reputation: 11148

TTPhotoViewController: deactivate rotation (no orientation landscape)

In my project, I use the Facebook API "three20": https://github.com/facebook/three20/

How can I deactivate the auto rotation? The image and the thumbnails should always displayed in portrait and not in landscape mode.

Thanks!

Upvotes: 0

Views: 364

Answers (1)

WrightsCS
WrightsCS

Reputation: 50707

Use shouldAutorotateToInterfaceOrientation:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return NO;
}

Upvotes: 1

Related Questions