本文整理汇总了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);
}
示例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;
}
示例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;
}
示例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);
}
示例5: WireToViewController
public override void WireToViewController(UIKit.UIViewController viewController,
CEInteractionOperation operation)
{
this.operation = operation;
this.viewController = viewController;
PrepareGestureRecognizer (viewController.View);
}
示例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;
}
示例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 ();
}
}
示例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);
}
示例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;
}
示例10: GetCell
public override UIKit.UITableViewCell GetCell (UIKit.UITableView tv)
{
cell = base.GetCell (tv);
cell.UserInteractionEnabled = enabled;
cell.TextLabel.Enabled = enabled;
return cell;
}
示例11: GetCell
public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv)
{
var cell = base.GetCell(tv);
cell.ImageView.Image = this.Image;
return cell;
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}