xamarin连不上ios
2015-08-31 14:53:55 lz37025 阅读数 497
UIAlertView messageBox = new UIAlertView("XFINIUM.PDF", "Sample completed with success", null, "Close", "View PDF");

alert.Clicked+=(caller,buttonArgs)=>

{

/ /yuo code

};

         messageBox.Show();


2015-01-25 17:36:26 id357015100 阅读数 833

			<span style="font-family: Arial, Helvetica, sans-serif;">this.mapView.MapType = MonoTouch.MapKit.MKMapType.Standard;</span>
			this.mapView.ShowsUserLocation = true;

			locationManager = new CLLocationManager ();
		
			int deviceVersion=Convert.ToInt32(UIDevice.CurrentDevice.SystemVersion.Split('.')[0]);
			if (deviceVersion < 8) {
			} else {
				locationManager.RequestWhenInUseAuthorization ();
			}

			locationManager.StartUpdatingLocation ();
			locationManager.LocationsUpdated += LocationManagerUpdate;
<pre name="code" class="csharp">		void LocationManagerUpdate (object sender, CLLocationsUpdatedEventArgs e)
		{
			locationManager.StopUpdatingLocation ();
			MKCoordinateSpan theSpan = new MKCoordinateSpan (0.2,0.2);
			MKCoordinateRegion theRegion = new MKCoordinateRegion (locationManager.Location.Coordinate,theSpan);
			this.mapView.SetRegion (theRegion,true);
		}


2015-05-18 18:42:39 jczwilliam312 阅读数 485

一,HelloWorld

  1.1 新建工程IOS-Single View App

    

  1.2 选择支持设备以及IOS版本

    

  1.3 生成的IOS代码

    

 1.4 修改界面


 1.5 运行程序

     运行在虚拟机上可以看到显示的界面效果。

  1.6 程序打包

      1.6.1,配置工程打包环境,右键工程,点击Options

      1.6.2,使用Archive for Publishing

    

二,手机拨号应用

2.1 电话拨号

var url = new NSUrl ("tel:" + translatedNumber);

2.2 对话框

var alert = UIAlertController.Create ("Not supported", "Scheme 'tel:' is not supported on this device", UIAlertControllerStyle.Alert);  
alert.AddAction (UIAlertAction.Create ("Ok", UIAlertActionStyle.Default, null));
PresentViewController (alert, true, null);

2.3 输出

Console.WriteLine ("Test Output Str");

2015-09-21 12:24:00 lz37025 阅读数 537
private void SetupPayoutsPicker()
        {
            List<string> payouts = new List<string> ();
            for (int i = 1; i < 201; i++) {
                payouts.Add (i.ToString ());
            }
            PickerModel model = new PickerModel (payouts);

            if (payouts != null && payouts.Count != 0) {
                getPayout = payouts [0];
            }
            model.PickerChanged += (sender, e) => {
                getPayout=e;
            };
            UIPickerView picker = new UIPickerView ();
            picker.ShowSelectionIndicator = true;
            picker.Model = model;

            UIToolbar toolbar = new UIToolbar ();
            toolbar.BarStyle = UIBarStyle.Black;
            toolbar.Translucent = true;
            toolbar.SizeToFit ();
            UIBarButtonItem doneButton = new UIBarButtonItem ("Done", UIBarButtonItemStyle.Done,
                (s, e) => {
                    txtPayouts.Text=getPayout;
                    txtPayouts.ResignFirstResponder();
                });
            toolbar.SetItems(new UIBarButtonItem[]{doneButton}, true);

            txtPayouts.InputView = picker;
            txtPayouts.InputAccessoryView = toolbar;
        }
2015-05-18 18:42:00 jczwilliam312 阅读数 10

一,HelloWorld

1.1 新建工程IOS-Single View App

1.2 选择支持设备以及IOS版本

1.3 生成的IOS代码

1.4 修改界面


1.5 运行程序

运行在虚拟机上可以看到显示的界面效果。

1.6 程序打包

1.6.1,配置工程打包环境,右键工程,点击Options

1.6.2,使用Archive for Publishing


二,手机拨号应用

2.1 电话拨号

var url = new NSUrl ("tel:" + translatedNumber);

2.2 对话框

var alert = UIAlertController.Create ("Not supported", "Scheme 'tel:' is not supported on this device", UIAlertControllerStyle.Alert);  
alert.AddAction (UIAlertAction.Create ("Ok", UIAlertActionStyle.Default, null));
PresentViewController (alert, true, null);

2.3 输出

Console.WriteLine ("Test Output Str");

xamarin ios 示例

阅读数 15

xamarin ios KeyBoardHide

阅读数 578

没有更多推荐了,返回首页