Dates in iPhone Settings Bundle - iphone

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.

The only way using the default settings is to use one or more textfields, and to parse the user's input to build a NSDate object.

Related

SAP Fiori: Show 'My Leave Requests' in days instead of hours

When requesting a leave in Fiori the pop up shows the away time in hours instead of days:
Is there a possiblity that instead of for example 15,00 hours the pop-up shows 2 days?
Beware that many stuff in Fiori applications can also be customized by customizing your default SAP application. If your default in leave request is in hours, then that is what this Fiori app will show. Change it to days and that will be what Fiori will show.
In case you have a specific requirement to make this deviate solely in the app, then indeed you need either an extension point or create a custom implementation.
Here some additional links:
Preffered method
Old-fashioned
From what it looks like, you are asking to change a standard, delivered app?
If so, it is only possible to change it, if an Extension Point is provided at the desired place and then adapt the extended code. Check the documentation for App Extensibility: My Leave Requests.
In any case, if you haven't gone through the documentation for the app itself, with the possible customizations, check the My Leave Requests Fiori app documentation

Plone 4.2: DatePicker Widget with YY/MM/DD instead of DD/MM/YY

In my Plone 4.2 site the DatePicker (e.g. when adding a new "event") displays as YEAR MONTH DAY
However, I do have a German Website, where it should be the other way around. That is:
DAY MONTH YEAR. How can I change this?
PS German is already selected as default language from Plone's language control panel.
PPS I don't know if this is related in any way, but since this might be a localisation issue, I'd rather tell: I use raptus.multilanguageplone
edit: added correct image link | say, that this happens when adding/editing a new event
I can't see the image you added because the URL is expired. so I'm going to assume you mean for the add/edit form of an Archetype (In Plone 4.2 the default types are all Archetypes).
There seems to be no easy fix such as a site-wide setting in the control panel, but you can change the ordering in the calendar_macros.pt template. This however means you'll have to change the raw HTML.
To do this, you'll have to go to the Zope Management Interface (reached via the Site Setup page "Plone/##overview-controlpanel").
Then click on the "portal_skins tool" and then "plone_templates". Then click on "calendar_macros" and then click the "Customize" button.
Now you can change the ordering in the raw HTML/TAL.

Define Settings programmatically

Is it possible to define the Root.plist in the Settings.bundle programmatically?
In the Settings – Mail, Contacts, Calendars, I can see all my accounts. I would like to do something similar, by having a number of user accounts being saved in the settings. From what I read so far, it looks like it isn’t possible, but I would like to be sure. Please note that I’m not looking to have a “Add Account” feature in the settings, just a listing of several accounts (number of accounts variable).
It's not possible for anyone other than Apple. Third party developers have no way of programmatically changing the Settings bundle.

Settings bundle, want to show dynamic data from web-service

Hi I am stuck please help me...
Is it possible to load dynamic data in the settings bundle, exactly what i need is when user sets a value for a preference, i need to display a list for the next preference, this list should be drawn from an online database. I have seen some thing similar in iPhone's default settings. Can anybody please give a solution for this as i am really screwed now. If it is not possible then i will include the settings in the app itself.
Thanks in advance
It is not possible to have dynamic values in Apple's settings application; they need to be specified in Settings.bundle before compilation. I recommend you implement a custom settings screen.

iPhone settings bundle

I want to allow the user to enter a valid date using the iPhone’s settings application.
I have experimented with many of the PreferenceSpecifiers data node types including date.
I have two issues:
When I specify date as the type, my app within the settings app crashes. Working examples would be greatly appreciated.
Since this approach hasn’t worked for me yet, will I programmatically be able to validate the date that the user enters?
The answer to number 2 is no. The only time you can validate the data entered is the next time your app is launched. None of your app's code is run via the Settings app.
You might consider pulling this setting into your app.
Have you read this guide and this section of the App guide? They describe in detail how the settings like this work.
You won't be able to validate anything a user sets through the Settings application. Also, I don't see Date as a valid setting type anywhere, so I don't even think this is possible through the Settings application.
I would simply create a settings view within the application. That way you can control your custom logic as you see fit.