縦向きにすると正常に動作するiPadアプリがあります。ただし、ランドスケープでは (ランドスケープのみを使用するように強制された場合でも)、追加した UIBarButtonItems が少し右に表示されすぎて、画面の右側から部分的に消えてしまいます。ボタンを作成して追加するために使用しているコードのスニペットを次に示します。
-(void)viewDidLoad
{
AppDelegate *app = [[UIApplication sharedApplication] delegate];
UIImageView *iv = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg.png"]];
[self.view addSubview:iv];
SDZFESServices *service = [SDZFESServices service];
[service setServiceUrl:[app serviceUrl]];
[service GetSeatingPlan:self action:@selector(SeatingPlanReturn:) group_id:[group ItemID] group_type:@"COU"];
self.title = [NSString stringWithFormat:@"Seating plan: %@", [group ItemName]];
UIBarButtonItem *bbi = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(SaveSeatingPlan:)];
[self.navigationItem setRightBarButtonItem:bbi];
}
何か案は?ボタンの左半分だけが表示されます。