C#
Switch branches/tags
Nothing to show
Clone or download
Latest commit 94eb5ef Jun 3, 2017

README.md

Xamarin.iOS.DatePickerDialog

NuGet Badge

Xamarin iOS C# port of https://github.com/squimer/DatePickerDialog-iOS-Swift

How to use

Install Nuget Install-Package Xamarin.iOS.DatePickerDialog

var startingTime = DateTime.Now;
var dialog = new DatePickerDialog();
dialog.Show("Choose time", "Done", "Cancel", UIDatePickerMode.Time, (dt) =>
{
  TimePickLabel.Text = dt.ToString();
}, startingTime);

There are 3 modes supported:

UIDatePickerMode.Time UIDatePickerMode.Date UIDatePickerMode.DateAndTime

Xamarin iOS C# port of https://github.com/squimer/DatePickerDialog-iOS-Swift demo