开发者

UITableView Grouped style in iPad

开发者 https://www.devze.com 2023-04-06 16:42 出处:网络
I am using UITableView to show my app开发者_JAVA百科 info but I don\'t why the tableview is not grouped style !! In the interface builder I change to the group style but does not change !!

I am using UITableView to show my app开发者_JAVA百科 info but I don't why the tableview is not grouped style !! In the interface builder I change to the group style but does not change !!

![enter image description here][1]

Need to be like this :

 UITableView Grouped style in iPad

EDITED :

- (IBAction)infoView {
    InfoViewController *showView = [[InfoViewController alloc]initWithNibName:nil bundle:nil];
    showView.modalPresentationStyle = UIModalPresentationFormSheet;
    showView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:showView animated:YES];
    [showView release]; 
}

INFOviewController is UITableView based subclass

@interface InfoViewController : UITableViewController


InfoViewController *showView = [[InfoViewController alloc]initWithNibName:InfoViewController bundle:nil];

Not specifying the Nib name leads to the changes made in Xib being ignored.

0

精彩评论

暂无评论...
验证码 换一张
取 消