weilsonwonder / WWCalendarTimeSelector

A android inspired iOS date/time picker
MIT License
317 stars 126 forks source link

calendar and time #87

Open sarath435 opened 5 years ago

sarath435 commented 5 years ago

hi , how to switch to time view on immediate closing of date view(on ok action)

thanks & regards Sarath chandra

AD-Paladins commented 5 years ago

try to use dispatch.async after 0.5 secs. it worked for me.

` DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { // in half a second...

        print("Launch de another callendar")

        // i triggered this function with an observer and a flag to recognize which calendar was presented.

}`
sarath435 commented 5 years ago

Thnq its working....thanks a lot

On Wed 14 Nov, 2018, 11:57 AM andres, notifications@github.com wrote:

try to use dispatch.async after 0.5 secs. it worked for me.

DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { // in half a second... print("Launch de another callendar") // i triggered this function with an observer and a flag to recognize which calendar was presented. }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/weilsonwonder/WWCalendarTimeSelector/issues/87#issuecomment-438552723, or mute the thread https://github.com/notifications/unsubscribe-auth/Aj4W2TETRr3_nQdj_feY6yRnqw7vRJxkks5uu7e7gaJpZM4YZgH6 .

AD-Paladins commented 5 years ago

In happy to help you 😊