0
i biblkereder 응용 프로그램을 개발 중입니다. iPhone/ipad iPhone 응용 프로그램을 성공적으로 수행했지만 iPad에서는 verses.i를 표시 할 다중 coloum보기가 필요합니다. 장는 스물 다섯 twetyfive.i이 implkemntaion에 대한 구글에서 검색을 많이했다 두 colums에 표시해야하지만 난 장에 따라 절을 diaplying에 대한 올바른 튜토리얼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];
}
이에게 코드를하지 않았다 (50 개) 구절을 포함 iPad에서 잡지 응용 프로그램처럼 splitvew가 필요합니다. chapteranderse
이 레이블입니다. delegate.allSelectedVerseEnglish
그들은 멀리있는 구절입니다. 미리 감사드립니다.
참으로 유는 문제 안하 권리를 말했다 어떻게 우리가 두 개의 tableiews로 문자열을 나눌 수 있습니까 ??? – stackiphone