Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

montouch.dialog open phone dialer from StyledStringElement delegate

$
0
0

Hi There,

I'm using xamarin studio 4.0.9 & monotouch.ios. I'm creating a new element and attaching a delegate to it. When I click the element I'm expecting to open the phone dialer to open but nothing is happening. I'm not receiving any errors, but I'm not able to pass the phone number and trigger the phone dialer.

Can someone please help me fix this code?

  Section.Add(new StyledStringElement (contactRow.phone), delegate{ Dotelephone (contactRow.phone); }));'

  private void Dotelephone(string strTelephone) {

        UIApplication.SharedApplication.OpenUrl (NSUrl.FromString ("tel:411"));

    }

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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