So I have a datepicker added programmatically. When the app is not run from Xcode, it freezes when I tried to tap the date from UIDatePicker. When run from Xcode, it works just