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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:51:24+00:00 2026-05-16T01:51:24+00:00

I create a class: @interface myUITableViewController : UIViewController { NSArray *listData; } … and

  • 0

I create a class:

@interface myUITableViewController : UIViewController

{
NSArray *listData;
}
…

and later,I do so:

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:nil    delegate:self cancelButtonTitle:nil otherButtonTitles:nil];

myUITableViewController *myUITable = [[myUITableViewController alloc] init];

[alert addSubview:myUITable.view];

[alert show];

After running,the result is that the myUITable.view’s size is bigger than alert.
Why?
Please tell me if you know.
Thank you!

  • 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-16T01:51:25+00:00Added an answer on May 16, 2026 at 1:51 am

    UIAlert is not really meant to be used like that. You should make your own custom UIView and add whatever content you need in it (the table and buttons). Then handle how it shows and hide yourself.

    Even if you manage to get it shown correctly chances are it might break in the future. In one of my apps i was showing an alert with a UITextField. I was making space for it by adding “\n” to the message. In later iOS versions this stopped working and it looked really awful…

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

Sidebar

Related Questions

I am trying to create a class that implements the IUnknown interface. I have
Is it possible to create an inner class within an interface? If it is
I'm using the GWT's Constants Interface. i have an instance class class that create
I have a parent class (A) that is UIViewController. Than i create class B
If I define an interface ITestInterface and then immediately create a class that implements
I'm trying to create JPA class implementing simple interface: public interface Task<T> { public
Stumped with a OOP interface F# question. Example - when I create a class
Whenever I create an abstract class I tend to create an interface to go
Say I have this Class @interface CustomClass : NSObject @property (nonatomic, strong) NSArray *
If I create the CButton in the myTab class, I can't interact with it

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.