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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:45:16+00:00 2026-06-01T19:45:16+00:00

I create an modal View controller. And In I crate TableView And TextField In

  • 0

I create an modal View controller. And In I crate TableView And TextField

Modal View

In vertical position all ok!
Verticlal

But in horizontal a can see all of this Vertical

How can I resize my view for it?

Here the code of call ModalView

-(IBAction)buttonTapped:(id)sender{
    UYLModalViewController *modalVC = [[UYLModalViewController   alloc] initWithNibName:@"UYLModalViewController" bundle:nil];
    modalVC.delegate = self;

    UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:modalVC];
    if (modalViewShowType==1)
    {
        nc.modalPresentationStyle = UIModalPresentationFullScreen;
         [self presentModalViewController:nc animated:YES];
    }
    else{

        nc.modalPresentationStyle = UIModalPresentationFormSheet;
        nc.view.bounds = CGRectMake(0, 0, 320, 480);
        [self presentModalViewController:nc animated:YES];
        //nc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;  
        //nc.view.frame = CGRectMake(0, 0, 320, 480);//it's important to do this after presentModalViewController
        //nc.view.center = self.view.center;
    }



    [modalVC release];
    [nc release];

}

and here the declaration of controller for modalView

@protocol UYLModalViewControllerDelegate

-(void) buttonDonePassed :(NSArray *) variables;


@end

@interface UYLModalViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate>
{ 

    id<UYLModalViewControllerDelegate> delegate;
    //id<UITextFieldDelegate> textdelegate;
   // id<UITextField> txt;
    IBOutlet UITableView *tblView;
    IBOutlet UITextField *textField;

    NSMutableArray *cellsArray;
    BOOL isAddedNewRow;
    //UITextField *textField;



}
- (UITableViewCell *) getCellContentView:(NSString *)cellIdentifier :(NSInteger *)cellRow;
//-(void) clickToTextField:(id)sender;
@property (nonatomic, assign) id<UYLModalViewControllerDelegate>    delegate;
@property (nonatomic, retain) IBOutlet UITableView *tblView;
@property (retain, nonatomic) IBOutlet UITextField *textField;


@end

As I can see in debug mode when the device in horizontal position it doesn’t go to the tableview delegate methods =(

  • 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-01T19:45:17+00:00Added an answer on June 1, 2026 at 7:45 pm

    1) Where is defined the methode :

    -(IBAction)buttonTapped:(id)sender;
    

    I think that there is a problem with presenting modal a viewController over an

    UISplitViewController…try to present it over an other ViewController to test

    2) the UISplitViewController can create some problems if you use it not correctly

    example: try to addSubView its view ( you can’t push it )

    3) Verify with the auoresizeMask of UYLModalViewController view

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

Sidebar

Related Questions

I wanted to create a modal view controller with a black background, but I
Is there a way to achieve the iTunes style modal view controller chain (see
I'm trying to create a transparent modal View on top of my navigation controller.
Is there anyway to create a dialog that is modal to a view and
I have a modal view controller that creates core data changes in it's own
I have a modal view controller that is displayed using: [self presentModalViewController:addStoryItem animated:YES]; on
I am presenting a modal view controller to show detailed information. I have it
In my app I have a function that presents a modal view controller when
UPDATED QUESTION: Hello , so I was able to create the modal view curl
I found this code to display a modal view: - (void)add:(id)sender { // Create

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.