Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9272371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:51:40+00:00 2026-06-18T15:51:40+00:00

I have a app with tabbarcontroller, two controller with it, and now in one

  • 0

I have a app with tabbarcontroller, two controller with it, and now in one controller I show a uiactionsheet in portrait model:

UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@””
delegate:nil cancelButtonTitle:@”Cancel”
destructiveButtonTitle:@”Del”
otherButtonTitles:nil,nil];

actionSheet.actionSheetStyle = UIActionSheetStyleBlackTranslucent;
[actionSheet showInView:self.view];
actionSheet.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleBottomMargin;
[actionSheet release];

and I found that when I change the mode to landscape, it not work, because it not response the controller delegate:

-(void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration

and if the actionsheet not show , the controller can change for landscape , why? Thank you very much!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:51:41+00:00Added an answer on June 18, 2026 at 3:51 pm

    Try this:

    UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"Some text..."
                               delegate:self
                      cancelButtonTitle:@"Cancel"
                 destructiveButtonTitle:@"Delete"
                      otherButtonTitles:@"Button 1",@"Button 2",nil];
    
      if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.0 ||
          UIDeviceOrientationIsPortrait([[UIDevice currentDevice] orientation])) {
        [sheet showInView:self.view];
      } else {
        [sheet showInView:self.view.window];
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one existing app for iphone with tabBarController and NavigationController.Now i want to
I have an app with one main TabBarController containing two tabs that control two
Have created a small two tab app, then subclassed another view controller to create
In my app I have a tabBarController and in it a navigationController. One of
In my app i have added tabBarController in split View's RootViewController.In that portrait mode
I have a tabbarcontroller, in one tab it has a navigationcontroller with tableview controller.And
In my app I have a TabbarController. One of the tabs opens a View
I have added Two Tabs in my app, to load two view controller using
I have an iPhone app which has a tabBarController as the root view controller
I have put one global tabBarController in iphone app that I have been working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.