本文整理汇总了C#中UITableViewCell.RespondsToSelector方法的典型用法代码示例。如果您正苦于以下问题:C# UITableViewCell.RespondsToSelector方法的具体用法?C# UITableViewCell.RespondsToSelector怎么用?C# UITableViewCell.RespondsToSelector使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UITableViewCell
的用法示例。
在下文中一共展示了UITableViewCell.RespondsToSelector方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WillDisplay
async public override void WillDisplay(UITableView tableView, UITableViewCell cell, NSIndexPath indexPath)
{
if (cell.RespondsToSelector(new ObjCRuntime.Selector("setSeparatorInset:")))
{
cell.SeparatorInset = UIEdgeInsets.Zero;
}
if (cell.RespondsToSelector(new ObjCRuntime.Selector("setPreservesSuperviewLayoutMargins:")))
{
cell.PreservesSuperviewLayoutMargins = false;
}
if (cell.RespondsToSelector(new ObjCRuntime.Selector("setLayoutMargins:")))
{
cell.LayoutMargins = UIEdgeInsets.Zero;
}
if (Master.TailFetchingEnabled && indexPath.Row == Master.GetTableItemCount() - 1 && !Master.Fetching && Master.GetTableItemCount() > 0 && Master.NextAllowedTailFetch < DateTime.UtcNow)
{
UIView FooterLoadingView = new UIView(new CoreGraphics.CGRect(0, 0, UIScreen.MainScreen.Bounds.Size.Width, ((AppDelegate)UIApplication.SharedApplication.Delegate).TabBarController.TabBar.Frame.Size.Height + 60));
UIActivityIndicatorView ai = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.Gray);
ai.Frame = new CoreGraphics.CGRect(UIScreen.MainScreen.Bounds.Size.Width / 2 - 15, 15, 30, 30);
ai.StartAnimating();
FooterLoadingView.AddSubview(ai);
tableView.TableFooterView = FooterLoadingView;
Master.Offset = Master.GetTableItemCount();//Master.Offset + Master.Count;
await Master.FetchTableData();
}
}
示例2: WillDisplay
public override void WillDisplay (UITableView tableView, UITableViewCell cell, Foundation.NSIndexPath indexPath)
{
if (cell.RespondsToSelector (new ObjCRuntime.Selector ("setSeparatorInset:"))) {
cell.SeparatorInset = UIEdgeInsets.Zero;
}
if (cell.RespondsToSelector (new ObjCRuntime.Selector ("setPreservesSuperviewLayoutMargins:"))) {
cell.PreservesSuperviewLayoutMargins = false;
}
if (cell.RespondsToSelector (new ObjCRuntime.Selector ("setLayoutMargins:"))) {
cell.LayoutMargins = UIEdgeInsets.Zero;
}
}
示例3: WillDisplay
public override void WillDisplay (UITableView tableView, UITableViewCell cell, NSIndexPath indexPath)
{
cell.BackgroundColor = UIColor.Clear;
if (cell.RespondsToSelector (new ObjCRuntime.Selector ("setSeparatorInset:"))) {
var separator = cell.SeparatorInset;
separator.Left = (indexPath.Row < maxCellNum) ? borderMargin : tableView.Bounds.Width;
cell.SeparatorInset = separator;
}
if (cell.RespondsToSelector (new ObjCRuntime.Selector ("setPreservesSuperviewLayoutMargins:"))) {
cell.PreservesSuperviewLayoutMargins = false;
}
if (cell.RespondsToSelector (new ObjCRuntime.Selector ("setLayoutMargins:"))) {
cell.LayoutMargins = UIEdgeInsets.Zero;
}
}