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

  • SEARCH
  • Home
  • 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 575401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:56:11+00:00 2026-05-13T13:56:11+00:00

I have used TableView and also used Disclosure Button by clicking on Disclosure Button

  • 0

I have used TableView and also used Disclosure Button by clicking on Disclosure Button i have got one Particular Image comes.i want that when i pressed Disclosure Button i have to get that particular image with performing Orientation so how can i do it.please help me. I am new in this kind of application.

  • 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-05-13T13:56:12+00:00Added an answer on May 13, 2026 at 1:56 pm

    You need to manually transform the table. Here is some code to create and rotate a UITableView around its center.

    // this defines a constant PORTRAIT_FRAME, which is the frame of the iPhone screen 
    // minus the Status Bar. Equivalent to CGRectMake(0,20,320,460). 
    #define PORTRAIT_FRAME [[UIScreen mainScreen] applicationFrame]
    
    // this defines a constant LANDSCAPE_FRAME, for orienting the table sideways
    #define LANDSCAPE_FRAME CGRectMake(0,20,480,300)
    
    
    // this function assumes you have a class variable called myTableView
    // and it toggles the orientation of myTableView
    - (void) rotateTable {
    
      if (myTableView.transform == CGAffineTransformMakeRotation(0)) {
        // rotate the image by 90 degrees  
        myTableView.transform = CGAffineTransformMakeRotation(M_PI/2); 
        myTableView.frame = LANDSCAPE_FRAME;
        return;
      }
    
      // set the image to its original orientation 
      myTableView.transform = CGAffineTransformMakeRotation(0); 
      myTableView.frame = PORTRAIT_FRAME;
    
    }
    

    If you want to trigger this rotation on a button click, then declare a UIButton and assign this function as the action. Here’s a function to create a UIButton. Just pass it @”rotateImage” for the action and self for the target.

    + (UIButton*) getButtonAtPoint:(CGPoint)point 
                                 target:(id)target 
                                 action:(NSString*)action {
    
      UIButton *button = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
      [button addTarget:target 
                 action:NSSelectorFromString(action)
       forControlEvents:UIControlEventTouchUpInside];
      return button;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used checkbox column in gridview. I want to check status of that
I have an array of 5 items that is also used as the content
I want change background of all cells in a tableView, I have used initWithStyle:UITableViewCellStyleValue1
I have one last problem that is killing me. I am playing around with
Can I use just one controller to have a Tableview (bottom half of the
I have a script that appends some rows to a table. One of the
We have a modal view that contains a Table view that contains UITableViewCells used
I have a view controller that is used to populate data from the core
For the app that i am developing i have used a UISplitViewController as my
I have a parser class that is subclass of NSOperation. It is used to

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.