UITableView の区切り線をカスタマイズする必要があり、そのためには、次のように cellForRowAtIndexPath メソッド内のリソース (png ファイル) にアクセスする必要があります。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// Some code here
myCustomSeparator.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"separator.png"]];
// Code ...
}
問題は、このメソッド内のリソースにアクセスするのは良い習慣ではないと聞いたことです。本当ですか?