1. UITableView Settings
CGRect tableviewrect = CGRectMake (0.0, 0.0, 50.0, 320.0);
Self.tableview = [[UITableView alloc] Initwithframe:tableviewrect Style:uitableviewstyleplain];
Tableview.center = Cgpointmake (SELF.VIEW.FRAME.SIZE.WIDTH/2, SELF.VIEW.FRAME.SIZE.HEIGHT/2);
Tableview.delegate = self;
Tableview.datasource = self;
The TableView rotates 90 degrees counterclockwise.
Tableview.transform = Cgaffinetransformmakerotation (-M_PI/2);
ScrollBar not displayed
Tableview.showsverticalscrollindicator = NO;
2. UITableViewCell Settings
-(UITableViewCell *) TableView:( UITableView *) Atableview Cellforrowatindexpath:( nsindexpath*) Indexpath
{
UITableViewCell *cell = [TableView dequeuereusablecellwithidentifier:@ "identifier"];
if (cell = = nil) {
cell = [[[UITableViewCell alloc] initwithstyle:uitableviewcellstylesubtitle [email protected] "identifier"] Autorelease];
Cell rotates 90 degrees clockwise
Cell.contentView.transform = Cgaffinetransformmakerotation (M_PI/2);
}
return cell;
}
IOS TableView Landscape Scrolling