2番目のコントローラーがテーブルビューコントローラーであるアプリケーション(ナビゲーションコントローラー)があります。セグエを介して必要なデータを送信することはできますが、テーブルビューのエントリをプログラムで更新することはできません。
私はIOSを初めて使用します。
これは私のヘッダーファイルです
#import <UIKit/UIKit.h>
@interface HCIResultListViewController : UITableViewController
@property (strong,nonatomic) NSMutableDictionary *resultList;
@property (strong, nonatomic) IBOutlet UITableView *tableListView;
@end
これは私の実装ファイルです。
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
#warning Potentially incomplete method implementation.
// Return the number of sections.
return 0;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
#warning Incomplete method implementation.
// Return the number of rows in the section.
return 0;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"HelloCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil){
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
}
cell.textLabel.text = @"Hello";
// Configure the cell...
return cell;
}
テーブルビューとコントローラーの操作方法を教えてもらえますか?
私はいくつかのドキュメントと例を調べましたが、本当に理解できませんでした