Saturday, January 02, 2010

Opening another application on the iPhone using NSUrl

NSUrl ns = new NSUrl(prot + first + sec.Trim());

if (!UIApplication.SharedApplication.OpenUrl(ns))

            {

                var av = new UIAlertView("Badness happened"

                    , "The scheme '" + prot + "' is not supported on this device.",

                    null, "Ok thanks", null);

                av.Show();

            }

Posted via web from solution revolution

No comments: