カスタムのuinavigationnバーを作成したいというテーブルビューがありますこのコードを試しました
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, self.view.bounds.size.width, self.view.bounds.size.height)];
//here for v, width= navBar width and height=navBar height
//
[view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"newsBanner.png"]]];
[self.navigationController.navigationBar addSubview:view];
問題は、画像が中央に配置されていないことです。サイズが640 x 72であるためです...画像を合わせる方法はありますか?