title: iPhone : How to implement android AlertDialog like functionality?
body: <p>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.</p>
  
  <p>In Android we can do this Through AlertDialog but IN Iphone I googled but did not find some suggestion to implement this thing.</p>
  
  <p>Below is Android code, but how to do this through IOS</p>
  
  <pre><code>   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 &gt; 0)
          pickUpStreet.setText(Address[0]);
  
           for (int i = 0; i &lt; 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 &gt; 1)
           pickUpZip.setText(getStateCity[1]);
         }
  
        }
       }
      }).create().show();
  </code></pre>