iosobjective-cios7uialertviewuidatepicker

iOS 7 UIDatePicker in UIAlertView customisation


Guys I was adding UIDatePicker to UIAlertView like this

enter image description here

It was fine with iOS 6 and below now in iOS 7 it comes like this

enter image description here

Any ideas why this happens? Is there a better way of doing this?.Any help is appreciated.


Solution

  • This is my component to support addSubview in AlertView.

    CXAlertView - Custom alert-view which allow you to add view as main content.

    enter image description here