当前位置: 首页>>代码示例>>C#>>正文


C# UIKit类代码示例

本文整理汇总了C#中UIKit的典型用法代码示例。如果您正苦于以下问题:C# UIKit类的具体用法?C# UIKit怎么用?C# UIKit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


UIKit类属于命名空间,在下文中一共展示了UIKit类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TouchesBegan

		public override void TouchesBegan (Foundation.NSSet touches, UIKit.UIEvent evt)
		{

			swiped = false;
			UITouch touch = touches.AnyObject as UITouch ;
			lastPoint = touch.LocationInView (this);
		}
开发者ID:CrossGeeks,项目名称:Xamarin.Samples,代码行数:7,代码来源:NativeDrawView.cs

示例2: GetCell

		public override UIKit.UITableViewCell GetCell (Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv)
		{
			var cell = base.GetCell (item, reusableCell, tv);
			cell.Accessory = UIKit.UITableViewCellAccessory.DisclosureIndicator;

			return cell;
		}
开发者ID:xamaringeek,项目名称:MyShoppe,代码行数:7,代码来源:ViewCellRenderer.cs

示例3: GetCell

 public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell,
     UIKit.UITableView tv)
 {
     var cell = base.GetCell(item, reusableCell, tv);
     cell.Accessory = CellAccessoryHelper.GetCellAccessory(item.StyleId);
     return cell;
 }
开发者ID:unger,项目名称:ArtportalenApp,代码行数:7,代码来源:StandardViewCellRenderer.cs

示例4: LogOutTouchUpInside

		partial void LogOutTouchUpInside (UIKit.UIButton sender)
		{
			// present tab bar controller
			var storyBoard = UIStoryboard.FromName ("Main", null);
			var loginView = storyBoard.InstantiateViewController ("rootView") as UINavigationController;
			this.PresentViewController (loginView, animated: true, completionHandler: null);
		}
开发者ID:joachimda,项目名称:I4PRJ,代码行数:7,代码来源:MoreViewController.cs

示例5: WireToViewController

 public override void WireToViewController(UIKit.UIViewController viewController,
     CEInteractionOperation operation)
 {
     this.operation = operation;
     this.viewController = viewController;
     PrepareGestureRecognizer (viewController.View);
 }
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:7,代码来源:CEHorizontalSwipeInteractionController.cs

示例6: GetCell

        public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv)
        {
            var cell = base.GetCell(item, reusableCell, tv);
            cell.SelectionStyle = UIKit.UITableViewCellSelectionStyle.None;

            return cell;
        }
开发者ID:rringham,项目名称:XamarinOffice365,代码行数:7,代码来源:IosNoHighlightListViewCellRenderer.cs

示例7: GetTitle

 public string GetTitle(UIKit.UIPickerView pickerView, System.nint row, System.nint component)
 {
     switch ((int)row) {
     case 0:
         return NearableType.Bag.ToString ();
     case 1:
         return NearableType.Bed.ToString ();
     case 2:
         return NearableType.Bike.ToString ();
     case 3:
         return NearableType.Car.ToString ();
     case 4:
         return NearableType.Chair.ToString ();
     case 5:
         return NearableType.Dog.ToString ();
     case 6:
         return NearableType.Door.ToString ();
     case 7:
         return NearableType.Fridge.ToString ();
     case 8:
         return NearableType.Generic.ToString ();
     case 9:
         return NearableType.Shoe.ToString ();
     default:
         return NearableType.Unknown.ToString ();
     }
 }
开发者ID:tdyocum,项目名称:estimotes-xplat,代码行数:27,代码来源:TriggerOrientationViewController.cs

示例8: SaveRecord

		async partial void SaveRecord (UIKit.UIButton sender)
		{
			if (nameTextField.Text.Length < 1) {
				nameTextField.ResignFirstResponder ();
				return;
			}

			var saveLocation = new CLLocation (pin.Coordinate.Latitude, pin.Coordinate.Longitude);
			var record = await CloudManager.AddRecordAsync (nameTextField.Text, saveLocation);

			if (record == null) {
				Console.WriteLine ("Error: null returned on save");
				return;
			}

			nameTextField.Text = string.Empty;
			nameTextField.ResignFirstResponder ();

			var alert = UIAlertController.Create ("CloudKitAtlas", "Saved record", UIAlertControllerStyle.Alert);
			alert.AddAction (UIAlertAction.Create ("OK", UIAlertActionStyle.Default, (act) => {
				DismissViewController (true, null);
			}));

			PresentViewController (alert, true, null);
		}
开发者ID:b-theile,项目名称:monotouch-samples,代码行数:25,代码来源:CKRecordViewController.cs

示例9: GetCell

		public override UIKit.UITableViewCell GetCell (Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv)
		{
			var cell = base.GetCell (item, reusableCell, tv);
			cell.SeparatorInset = UIEdgeInsets.Zero;
			cell.TextLabel.Font = UIFont.FromName ("baskervillebecker", 18f);
			return cell;
		}
开发者ID:Vineland,项目名称:DarkestNight.App,代码行数:7,代码来源:CustomImageCellRenderer.cs

示例10: GetCell

		public override UIKit.UITableViewCell GetCell (UIKit.UITableView tv)
		{
			cell = base.GetCell (tv);
			cell.UserInteractionEnabled = enabled;
			cell.TextLabel.Enabled = enabled;
			return cell;
		}
开发者ID:MattHarrington,项目名称:FacebookiOSSample,代码行数:7,代码来源:CustomCheckboxElement.cs

示例11: GetCell

		public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv)
		{
			var cell = base.GetCell(tv);

			cell.ImageView.Image = this.Image;

			return cell;
		}
开发者ID:hisystems,项目名称:MonoTouch.Dialog,代码行数:8,代码来源:StyledRootElement.cs

示例12: GetCell

 public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv)
 {
     var cell = base.GetCell(tv);
     cell.BackgroundColor = StyledStringElement.BgColor;
     cell.TextLabel.Font = StyledStringElement.DefaultTitleFont.WithSize(StyledStringElement.DefaultTitleFont.PointSize * Element.FontSizeRatio);
     cell.TextLabel.TextColor = StyledStringElement.DefaultTitleColor;
     return cell;
 }
开发者ID:Jeff-Lewis,项目名称:CodeBucket,代码行数:8,代码来源:TrueFalseElement.cs

示例13: LoadingFinished

            public override void LoadingFinished(UIKit.UIWebView webView)
            {
                var HeightHtml = webView.ScrollView.ContentSize.Height;
                pclControl.ContentHeight = (int)HeightHtml;

                webView.ScrollView.ScrollEnabled = false;
                //webView.LoadHtmlString ((pclControl.Source as HtmlWebViewSource).Html, null);
            }
开发者ID:alessandrofacchini,项目名称:ImagoPCL,代码行数:8,代码来源:WebviewRender.cs

示例14: TouchesMoved

        public override void TouchesMoved(Foundation.NSSet touches, UIKit.UIEvent evt)
        {
            base.TouchesMoved(touches, evt);

            System.Diagnostics.Debug.WriteLine("GestureSwitch: TouchesMoved");

            this.NextResponder.TouchesMoved(touches, evt);
        }
开发者ID:Manne990,项目名称:XamTest,代码行数:8,代码来源:GestureViewRenderer.cs

示例15: GetCell

 public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv)
 {
     var cell = base.GetCell(tv);
     var addRemove = ((ChangesetCell)cell).AddRemoveView;
     addRemove.Added = _added;
     addRemove.Removed = _removed;
     addRemove.SetNeedsDisplay();
     return cell;
 }
开发者ID:RaineriOS,项目名称:CodeHub,代码行数:9,代码来源:ChangesetElement.cs


注:本文中的UIKit类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。