how to implement date picker on button click in ios?

后端 未结 4 1527
忘了有多久
忘了有多久 2021-02-20 04:23

I am building an iOS app.I am using storyboards to build the screens and i have made a form which contain some fields like Name,Date,min and max.

I am facing an problem

4条回答
  •  终归单人心
    2021-02-20 04:25

    Add hidden textfield view and configure the date picker.

    [self.xTextFeild setInputView:_datePicker];
    

    Then When ever you want call below code.

    [self.xTextFeild becomeFirstResponder];
    

    `

提交回复
热议问题