本文整理汇总了C#中CGPoint.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# CGPoint.ToString方法的具体用法?C# CGPoint.ToString怎么用?C# CGPoint.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGPoint
的用法示例。
在下文中一共展示了CGPoint.ToString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetViewControllerForPreview
public UIViewController GetViewControllerForPreview(IUIViewControllerPreviewing previewingContext, CGPoint location)
{
// Obtain the index path and the cell that was pressed.
var indexPath = CollectionView.IndexPathForItemAtPoint (location);
Console.WriteLine ("ForPreview " + location.ToString() + " " + indexPath);
if (indexPath == null)
return null;
var cell = CollectionView.CellForItem (indexPath);
if (cell == null)
return null;
// Create a detail view controller and set its properties.
var peekViewController = (PeekViewController)Storyboard.InstantiateViewController ("peekvc");
if (peekViewController == null)
return null;
var peekAt = tasks [indexPath.Row];
peekViewController.SetTodo (peekAt);
peekViewController.PreferredContentSize = new CGSize (0, 160);
previewingContext.SourceRect = cell.Frame;
return peekViewController;
}