Custom UIView via UIActionSheet

Is it possible to change the UIActionSheet with a custom UIView? I have a preference cell in one of my tables that would benefit greatly from a modal popping up with a UIDatePicker. If it appears as a warning, it will be fantastic as well. Ideally, it would be nice to have free animation that comes into play with a UIActionSheet. Otherwise, it's a matter of creating a UIView, setting a custom background, adding a UIDatePicker and animating it manually.

Is there a smarter / faster way to do this than replicating the many features that Apple usually gives you out of the box?

+1


source to share


2 answers


UIActionSheet is a UIView. You should be able to add other views to your views.



+1


source


As a follow-up for anyone else looking at this issue, modifying the UIActionSheet file is not supported by Apple. Apps that do this are likely to break major os updates.



0


source







All Articles