I have a UIdatepicker inside a collection view. However it doesn\'t seem to close when a value is selected. A search of stackoverflow suggested setting isHidden or endEditin