iphoneobjective-cthree20

three20 and orientation


I am using three20 for displaying thumbnails. It's working perfectly. But I need to resize the thumbnail. Is it possible to resize the thumbnail and Bool shouldAutorotateToInterfaceOrientation is also not supported

I am implement to check the orientation in viewdidload method

TTDeviceOrientationIsPortrait()
TTDeviceOrientationIsLandscape();

But it is not working in shouldAutorotateToInterfaceOrientation method


Solution

  • I am fixing the issue by using NSNotification for orientation

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil];

    and refer the link by changing size

    Change thumbs size in TTThumbsViewController