uimodalpresentationformsh

iPad modal form sheet takes up the whole screen anyways

家住魔仙堡 提交于 2019-12-22 03:42:22
问题 I'm trying to create a form sheet modal on iPad, which should be a 540x620 modal view. I've created a view controller with a NIB file whose view is a 540x620 sized UIView (with stuff on it). I set the modal presentation style to UIModalPresentationFormSheet , and call presentModalViewController:animated: on the current view controller. My view slides in from the bottom, but instead of being a form sheet, it takes up the whole screen (my view elements are all anchored in the top left of the

UIModalPresentationFormSheet resizing view

泪湿孤枕 提交于 2019-11-28 03:27:45
I am interested to know on how I can resize the view when using UIModalPresentationFormSheet of modalPresentationStyle , it looks like it has a fixed size so I was wondering if anyone out there did managed to manipulate the popup view from the sizing perspective. So there is either UIModalPresentationFormSheet with a fixed view size or full views and I am after something in between. tosi MyModalViewController *targetController = [[[MyModalViewController alloc] init] autorelease]; targetController.modalPresentationStyle = UIModalPresentationFormSheet; targetController.modalTransitionStyle =

UIModalPresentationFormSheet resizing view

不羁岁月 提交于 2019-11-27 00:03:33
问题 I am interested to know on how I can resize the view when using UIModalPresentationFormSheet of modalPresentationStyle , it looks like it has a fixed size so I was wondering if anyone out there did managed to manipulate the popup view from the sizing perspective. So there is either UIModalPresentationFormSheet with a fixed view size or full views and I am after something in between. 回答1: MyModalViewController *targetController = [[[MyModalViewController alloc] init] autorelease];

Modal Dialog Does Not Dismiss Keyboard

徘徊边缘 提交于 2019-11-26 16:08:01
I am running into an issue where the keyboard does not get dismissed when leaving a UITextField or UITextView in a UIModalPresentationFormSheet . In addition, I've created a large button to serve as the view's background so if the user taps outside the fields it gets triggered. I am using the same code in a regular view controller, and it works as expected. In the modal view controller it does nothing. Any suggestions would be appreciated. - (BOOL)textFieldShouldReturn:(id)sender { [titleTextField resignFirstResponder]; return YES; } - (BOOL)textViewShouldReturn:(id)sender { [synopsisTextView