开发者

how to go to datepickerview from date textfield? [closed]

It's difficult to tell what is being asked here. This question is开发者_如何学Go ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

how to go to datepickerview from date textfield?


if i got you right -

you should add the DatePickerView as the inputView of the textField.

   textField.inputView = datePickerView;

this line will make your app lunch the date picker when your text field is becoming the first responder.

good luck


Use text view delegate view methods

http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextFieldDelegate_Protocol/UITextFieldDelegate/UITextFieldDelegate.html

U can use the methods according to your needs and show the Picker view when u want, through those methods

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜