Я занимаюсь разработкой приложения biblkereder n iPhone/ipad я успешно выполнил приложение для iPhone, но в iPad мне нужно несколько изображений Coloum для отображения стихов. Я использую tableview для отображения стихов. глава содержит 50 стихов, что необходимо отобразить в два colums двадцать пяти twetyfive.i были найти много в гугле для этого implkemntaion, но я не получить правильные АркадамНесколько столбцов в UITableView
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
// Customize the number of rows in the table view.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [delegate.allSelectedVerseEnglish count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
readCell *cell = (readCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier
] autorelease];
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"readCell" owner:self options:nil];
cell = [nib objectAtIndex:0];
cell.textLabel.font = [UIFont fontWithName:@"Georgia" size:18.0];
cell.textLabel.lineBreakMode = UILineBreakModeWordWrap;
cell.textLabel.numberOfLines = 0;
table.opaque = YES;
table.backgroundColor = [UIColor clearColor];
table.separatorColor = [UIColor clearColor];
cell.chapterAndVerse.text = [NSString stringWithFormat:@"%d",indexPath.row+1];
cell.chapterAndVerse.frame=CGRectMake(0, 10, 20.0, 20.0);
cell.textLabel.text = [NSString stringWithFormat:@" %@",[delegate.allSelectedVerseEnglish objectAtIndex:indexPath.row]];
cell.textLabel.font = [UIFont fontWithName:@"Georgia" size:18.0];
cell.backgroundColor = [UIColor clearColor];
}
этого кода diaplying стихов в соответствии с разделом в iPhone.but мне нужен раскол, подобный журнальным приложениям в iPad. chapteranderse
- это ярлык. delegate.allSelectedVerseEnglish
Это они, которые содержат стихи. Спасибо заранее.
да у сказал право thing.but проблем как мы можем разделить строку на две таблицы? – stackiphone