1
에서 나는 코드에서 내 UIPopoverPresentationController
을 초기화하는거야 :UIPopoverPresentationController 스토리 보드
ChoseOptionsViewController *contentController = [[ChoseOptionsViewController alloc] init];
contentController.modalPresentationStyle = UIModalPresentationPopover;
UIPopoverPresentationController *copvc = contentController.popoverPresentationController;
copvc.permittedArrowDirections = UIPopoverArrowDirectionAny;
copvc.sourceView = sender;
copvc.sourceRect = sender.bounds;
contentController.preferredContentSize = CGSizeMake(200, 200);
[self presentViewController:contentController animated:YES completion:nil];
내가, 스토리 보드에서의 ViewController를 만들어 여기에 ChoseOptionsViewController
클래스를 할당했습니다 비록 내가 갖는 모든 빈 200x200 크기이다 일부 UI 요소를 드래그했습니다. 말해주십시오. 코드에서 팝업을 초기화 할 때 스토리 보드에서 내 의견을 얻으려면 어떻게해야합니까? 미리 감사드립니다.