新しいメモを追加するためにポップオーバーを生成する必要があるアプリを作成しています。そのために、ある種のトリックを行うものがありますが、ポップオーバーのサイズを調整できないようです。これは私がそれを生み出す方法です:
UIButton* btn =sender;
UIViewController* fooTroller = [[UIViewController alloc] init];
CGRect rectFoo = CGRectMake(0, 0, 100, 100);
UIView* fooView = [[UIView alloc] initWithFrame:rectFoo];
[fooView setBackgroundColor:[UIColor redColor]];
[fooTroller setView:fooView];
popOver =[[UIPopoverController alloc] initWithContentViewController:fooTroller];
[popOver presentPopoverFromRect:btn.frame
inView:self.view
permittedArrowDirections:UIPopoverArrowDirectionLeft
animated:YES];
何かご意見は?ビューサイズを尊重していません。