I am trying to implement functionality in iphone to show Table in AlertView and on click of Table it Fills some control on parent view.
In Android we can do this Through AlertDialog but IN Iphone I googled but did not find some suggestion to implement this thing.
Below is Android code, but how to do this through IOS
new AlertDialog.Builder(MakeReservation.this).setTitle("Previous Locations").setItems(locArray, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
String str = locArray[which];
if (str.contains(",")) {
String[] Address = str.split(",");
// String[] PickAddress = "Snoufer School, Gaithersburg, MD 45123".split(",");
if (Address.length > 0)
pickUpStreet.setText(Address[0]);
for (int i = 0; i < getResources().getStringArray(R.array.state_symbols).length; i++)
if (getResources().getStringArray(R.array.state_symbols)[i].equals(getStateCity[0])) {
pos = i;
break;
}
pickUpState.setSelection(pos);
}
if (getStateCity.length > 1)
pickUpZip.setText(getStateCity[1]);
}
}
}
}).create().show();
I dont know how it shows in android the alert-dialog u seeks.
But I guess you are searching for something like this Image1 Image2.