次のようなクラス定義があります。
@interface ClassViewController : ContentViewController <UITableViewDelegate,
UITableViewDataSource> {
IBOutlet UITableView* mTableView;
NSMutableArray *feeds;
NSMutableData *responseData;
}
@property (nonatomic, retain) UITableView* mTableView;
@property (nonatomic, strong) NSMutableArray* feeds;
@property (nonatomic, strong) NSMutableData* responseData;
JSON リクエストの後にコンテンツを読み込もうとしています。ただし、画面を操作する (下にスクロールするなど) まで、テーブルは新しい内容で更新されません。
私は[self->mTableView reloadData];
何の効果もありません。また、
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
私は設定しています:
self.mTableView = tableView;
そうしないと、結果がテーブルにまったく反映されません。
欠けているものはありますか、それともそのself.mTableView
定義を別の場所に配置する必要がありますか?
Objective-C と iOS の開発は初めてなので、何か抜けている場合はお知らせください。