简体   繁体   中英

Dates in iPhone Settings Bundle

I'm working on a very simple iPhone app, that in the end will have maybe 3 or 4 settings.

Ideally I'd like to use the Settings app provided for free in the SDK.

One of the settings I'd like the user to be able to enter is their date of birth, however there doesn't seem to be a way to prompt the user for a date in the Settings app.

Aside from writing a custom settings page within my app, is there any other options?

Take a look at UIPickerView to allow the user to "dial in" values that correspond to a day, month, and year.

EDIT : Okay, thanks for clarifying. Perhaps take a look at the PSMultiValueSpecifier key and use its multi-value selectors for day, month and year selections.

Look at the tutorial section of the Application Preferences document for help on this, specifically the "Experience Level" portion.

使用默认设置的唯一方法是使用一个或多个文本字段,并解析用户的输入以构建NSDate对象。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM