私はUIActionSheet
このようなものを示しています:
-(void)accessoryPressed:(id)sender{
//Omitted unnecessary objects
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:titleString delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete" otherButtonTitles:@"Upload", nil];
//actionSheet.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
actionSheet.actionSheetStyle = UIActionSheetStyleBlackTranslucent;
actionSheet.tag = ((UIButton*)sender).tag;
[actionSheet showFromRect:[(UIButton*)sender frame] inView:[(UIButton*)sender superview] animated:YES];
}
sender
オブジェクトがのアクセサリ ビューUIButton
に埋め込まれている場所。UITableViewCell
問題は、iPad を回転させたときにアクションシートのサイズが変更されないことです (実際にサイズ変更することは期待していませんが、正しい X、Y にする必要があります) AutoResizingMask を FlexibleLeft と FlexibleTop に設定しようとしましたが、そうではありません変わるようです。
actionSheet がaccessoryView
自動回転後に指すようにする方法について誰か考えがありますか?
これは次のようになります。
回転前-
回転後 -