English 中文(简体)
UYLModalViewController案
原标题:Change size of View in UYLModalViewController

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

“Modal

In vertical position all ok! Verticlal

但从横向来看,可以看到所有这些内容:“Vertical”/

我如何改变我的看法?

这里的电话是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];

}

并在此宣布“控制模式” 观点

@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

如我能看到,在横向定位装置时,它没有采用表格代表方法=(a)

最佳回答

1) Where is defined the methode :

-(IBAction)buttonTapped:(id)sender;

我认为,在提出一种模式时,存在一个问题,即对一名监察员提出一种看法。

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

(2) 如果你不正确使用,首席仲裁员可以产生一些问题。

例如:试图补充其意见(您可以推举)

3) 与 au合 Mask of UYLModalViewController view

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签