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 9206405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:10:05+00:00 2026-06-18T00:10:05+00:00

Problem: I used custom UITalbeViewCell that contains two buttons, they work fine in the

  • 0

Problem:

I used custom UITalbeViewCell that contains two buttons, they work fine in the portrait orientation. After the rotation, they all stop responding to the button touch up inside function. Some people having problems that their buttons couldn’t drew correctly after rotation. Mine looked fine since the buttons are showing in the right places after rotation, but they do not respond to the button press anymore.

For this specific view in my app, I used a UIPageController to implement multi pages in a view, and for the view (name it EmbeddedView for now) embedded in the page’s scroll controller, there is a UITableView that contains custom UITableViewCell. Custom table view cell only has a nib, the file’s owner is EmbeddedView.

in EmbeddedView:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
/*===== This is the most memory efficient way of creating table view cells =====*/

static NSString *CellIdentifier = @"CellIdentifier";

CustomTableViewCell *cell = (CustomTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
    [[self customTableCellNib] instantiateWithOwner:self options:nil];
    cell = [self customTableCell];
    [self setCustomTableCell:nil];
    }
}

What I tried:

I created another nib file for the custom table view cell and used it in -cellForRowAtIndexPath(), I checked the orientation and dynamically create the cell by using different nib, no luck.

I added [tableview reloadData] in -didRotateFromInterfaceOrientation(), didn’t do anything.

Would someone point me to the right direction please? Any help is appreciated.

This is the table view Autosizing in IB:

enter image description here

It looks right but the buttons are not working

enter image description here

Update: I tried to specify different Autosizing masks in IB for the table view, and the results are showing below:

<1>

enter image description here enter image description here

enter image description here

<2>

enter image description here enter image description here

enter image description here

<3>

enter image description here

enter image description here

<4>

enter image description here

enter image description here

  • 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-18T00:10:07+00:00Added an answer on June 18, 2026 at 12:10 am

    Have you checked how the superview is being resized?

    Check if the superview has ‘clip to bounds’ checked. If it is not check it. That will make the view clip its contents so you see if it is resizing ok.

    I’d say the superview is not sizing correctly and because of that the touch events are not well delivered also.

    EDIT – So this was the tip that could let the OP reach the solution:

    What I normally do in cases like of unexpected behavior in resizing and such is to change every view in the hierarchy to a different, well recognizable, color. Right now you have view A and view B with the same background color (or clear) and you don’t see if view B is resizing well. Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with some code that used to work in PHP 4.X
We have used Custom List View inside that one Text View and two Edit
The problem: we have one application that has a portion which is used by
I'm having a problem closing my app after NSSavePanel has been used... If I
My problem is that I'm trying to count which tag has been used most
I came across some code recently that used a custom error handler to turn
I made a custom module that sell used product along with original product and
I have a custom editor template for a vehicle part that is used in
I have a simple problem. I created a custom UITableViewCell that includes a UISwitch
I have used a custom array adapter to populate my list view.The problem i

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.