-1

I am making an application which supports portrait, landscape left, landscape right interface orientiations. However in my application, there are some view controllers for which I want to have only portrait. It means that, when you rotate this view controller, no changing should happen. I try to describe in this image. image

Please help me, It's important to my project :)

Jamal Zafar
  • 2,179
  • 2
  • 27
  • 32
user2728147
  • 23
  • 1
  • 3

2 Answers2

0

Try this::

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    if (interfaceOrientation==UIInterfaceOrientationPortrait)
    {
        return YES; 
    }
    return NO;
}

Hope it Helps!!

Armaan Stranger
  • 3,140
  • 1
  • 14
  • 24
  • I tried. I only need insert your code to my project? It doesn't work. I am using iOS 6 – user2728147 Aug 29 '13 at 07:40
  • I make a new project to test your code. Can you see project in here: [Link download project](https://app.box.com/s/zshofy86gx7ovxjirek1). It doesn't work. – user2728147 Aug 29 '13 at 07:56
0

Please go through my answer in the following link.

Xcode iphone orientation support for certain views

I think it would help you..

Community
  • 1
  • 1
Mihir Das
  • 458
  • 4
  • 13
  • Can you help me fix my project and send it to me. I make a new project to test your code. Can you see project in here: [Link down project] (https://app.box.com/files/0/f/0/1/f_10048079157) THank you :( – user2728147 Aug 29 '13 at 10:00