using System; using Shared.IOS.JLCountryCode; namespace Jlcountrycode { public class CountryCodeView { /// /// 接口类的返回信息 /// private static CountryCodeView m_Current = null; /// /// 接口类的返回信息 /// public static CountryCodeView Current { get { if (m_Current == null) { m_Current = new CountryCodeView(); } return m_Current; } } /// /// 国家区号选择 /// /// public void Show(Action action) { JLCountryCodeController mJLCountryCodeController = new JLCountryCodeController(); mJLCountryCodeController.SelectCountryCodeBlock += (countryName, code) => { action?.Invoke(countryName, code); }; Shared.Application.currentVC.NavigationController.PushViewController(mJLCountryCodeController, true); } } }