iOS Question iOS DatePicker localization

Tomas Petrus

Active Member
Licensed User
Longtime User
Trying to localize DatePicker in iOS

using this advice

So I created
Files/Special/cs.lproj/InfoPlist.strings
Files/Special/en.lproj/InfoPlist.strings
Files/Special/es.lproj/InfoPlist.strings

but nothing changed I still see the english calendar ...

any advice ?
DatePicker is initialized like this

<code>
Dim cd As CustomLayoutDialog
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, Root.Width - 50dip, 400dip)
p.LoadLayout("DialogFecha_iOS")

cd.Initialize(p)
If Main.App.OSVersion >= 13.4 Then
Dim no As NativeObject = p.GetView(0)
no.SetField ("preferredDatePickerStyle", 3)
End If
Private dp As DatePicker = p.GetView(0)
....
</code>
 

MarcoRome

Expert
Licensed User
Longtime User
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
or you can see also


 
Upvote 0
Top