2012-01-22 10 views
0

私はbiblkerederアプリケーションを開発しています。iPhone/ipad iPhoneアプリケーションを正常に実行しましたが、iPadでは、複数のcoloumビューを表示する必要があり、verses.iを表示するにはtableviewを使用しています。この章では、それは二十から五twetyfive.iこのimplkemntaionをGoogleで検索たくさん持っていた2つの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彼らは詩を含んでいます。 ありがとうございます。

答えて

1

なぜ2つのテーブルビューを使用しないのですか?ここで

...画面上の2つのテーブルビューを追加し、それらをsperateタグを与え、最初のテーブルのセルのタッチ上の第2のテーブルをリロード..私の考え..です

+0

いやuは問題thing.but右を言いましたどのように我々は2つのテーブルに文字列を分割することができます??? – stackiphone

関連する問題