Quantcast
Channel: Sarina DuPont, Product Manager RAD Studio
Viewing all articles
Browse latest Browse all 132

Using the native Custom Picker on iOS

$
0
0

The spinning custom picker is a common control used in iOS applications today and can be seen in a variety of applications, including travel, shopping and enterprise applications.

When building FireMonkey iOS applications, you can use TComboBox to display the native custom picker control at runtime. The sample below lets you pick from four different items and displays the selected item in a listbox.

procedure TCustomPickerForm.ComboBox1Change(Sender: TObject);
begin
// update the listbox item with the name of the picked item
ListBoxItem6.Text := Format(’Picked: %s’, [ComboBox1.Items[ComboBox1.ItemIndex]]);
end;

Regards,

Sarina

Learn more about Delphi for iOS by visiting http://embt.co/RADStudioiOS


Viewing all articles
Browse latest Browse all 132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>