What is the empty field in the new Date Picker?

I want to use a Date Picker inside a TableViewCell but it shows some empty field - look the attached image.

What is it and how to remove that empty field?

Answered by Claude31 in 686494022

What do we see on screen ? A cell (a row of the table) ?

Is there a single row in your table ?

Looks like we see the cell background, but it is hard to say with such limited view.

You could try different solutions :

  • reduce the width of the tableView (date Picker has a fixed width)
  • make tableView background transparent (and may be the cell background as well).

Could you show how you defined the date picker ? Automatic ? Date and time ?

I used the Interface Bilder

Are you sure you have not declared another object behind it ?

Is it in your app's settings ?

OK. Could you show the complete definition of the cell ?

This is my Document Outline on the attached screenshot.

I didn't use any code

it is a regular TableViewController with static grouped cells. No code was used here, just an interface builder.

Accepted Answer

What do we see on screen ? A cell (a row of the table) ?

Is there a single row in your table ?

Looks like we see the cell background, but it is hard to say with such limited view.

You could try different solutions :

  • reduce the width of the tableView (date Picker has a fixed width)
  • make tableView background transparent (and may be the cell background as well).

yes it looks like the background of the cell. If I set constraints along with the margins, then the Date Picker will look like this

You know, while we were discussing, I'm already used to this appearance)) I won't dive into the settings, I'll leave it as it is.

Thanks a lot for your help! I and other people appreciate it very much!

What is the empty field in the new Date Picker?
 
 
Q