• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# UIKit类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: DidReceiveLocalNotification

 public override void DidReceiveLocalNotification(UIKit.UILocalNotification localNotification, Action<WKUserNotificationInterfaceType> completionHandler)
 {
     // This method is called when a local notification needs to be presented.
     // Implement it if you use a dynamic glance interface.
     // Populate your dynamic glance inteface as quickly as possible.
     //
     // After populating your dynamic glance interface call the completion block.
     completionHandler(WKUserNotificationInterfaceType.Custom);
 }
开发者ID:mrlacey,项目名称:Win10OTA,代码行数:9,代码来源:NotificationController.cs


示例17: SegmentedControlClicked

		partial void SegmentedControlClicked (UIKit.UISegmentedControl sender){
			if(sender.SelectedSegment == 0){
				Type = "Timed";
			}
			else{
				Type = "Timers";
			}
			ShowCorrectPage();
		}
开发者ID:natevarghese,项目名称:XamarinTen,代码行数:9,代码来源:PopularViewController.cs


示例18: HandleLocalNotificationAction

        public override void HandleLocalNotificationAction(string identifier, UIKit.UILocalNotification localNotification)
        {
            Console.WriteLine($"HandleLocalNotificationAction: {identifier}");

            var baseCurrency = (string)(NSString)localNotification.UserInfo.ValueForKey((NSString)"baseCurrency");
            var counterCurrency = (string)(NSString)localNotification.UserInfo.ValueForKey((NSString)"counterCurrency");
            Pairs.NotificationCurrencyPair = new NotificationCurrencyPair(baseCurrency, counterCurrency);

            base.HandleLocalNotificationAction(identifier, localNotification);
        }
开发者ID:tomgilder,项目名称:ReactiveTrader,代码行数:10,代码来源:InitialController.cs


示例19: ShouldStartLoad

        protected override bool ShouldStartLoad(Foundation.NSUrlRequest request, UIKit.UIWebViewNavigationType navigationType)
        {
            if (!request.Url.AbsoluteString.StartsWith("file://", System.StringComparison.Ordinal))
            {
                ViewModel.GoToLinkCommand.Execute(request.Url.AbsoluteString);
                return false;
            }

            return base.ShouldStartLoad(request, navigationType);
        }
开发者ID:Mikoj,项目名称:CodeBucket,代码行数:10,代码来源:ReadmeView.cs


示例20: OnUpdateItemButtonTapped

 partial void OnUpdateItemButtonTapped(UIKit.UIButton sender)
 {
   if (null == this.CreatedItemPath)
   {
     AlertHelper.ShowLocalizedAlertWithOkOption("Message", "Create item at first");
   }
   else
   {
     this.SendUpdateRequest();
   }
 }
开发者ID:amatkivskiy,项目名称:sitecore-xamarin-pcl-sdk,代码行数:11,代码来源:CreateITemByPathViewController.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# UIKit.UILabel类代码示例发布时间:2022-05-24
下一篇:
C# UIInterfaceOrientation类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap