Why is there no back button in the date picker?

This walkthrough for MT.D shows the return button on the UIDatePicker that appears when you click DateElement. I am in an iPad application and use MTD DialogViewController as a subtask in a generic UIView. When the data collector slides, I just get a black background without the ability to reject the selector (there is no nav w / back button). The same problem exists for a group of radio groups. Is this because the dialog box controller is used as a subtitle? Any ideas on how I can get the navigation bar using the back button using the built-in selection logic?

+4
source share
1 answer

You must use the DialogViewController as a child of the UINavigationController to get the back button. On iPad, you can embed the UINavigationController in the UIPopoverController. Adding a controller view to another controller's view is not considered a good design in iOS and will not lead to the expected behavior.

+1
source

Source: https://habr.com/ru/post/1444630/


All Articles