In MT.Dialog the Source class has this:
public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
{
......
}
In my class:
public class BaseDialogViewController : DialogViewController
how do I override public override UITableViewCell GetCell
This doesn't work:
public override GetCell ....
Thanks
Note: I am trying to implement: http://fastchicken.co.nz/2012/05/20/earnest-debrief-visual-styles-in-ios-apps-uiappearence-custom-sections-in-monotouch-dialog/
DialogViewController
does not have GetCell
method. So
public class BaseDialogViewController : DialogViewController
won't work. However DialogViewController.Source
, a nested type, has a GetCell
method so
public class BaseDialogViewControllerSource : DialogViewController.Source {
public override UITableViewCell GetCell...
}
should work. Of course you need your own subclass of DialogViewController
to use your new subclass of Source
. Which can be done by overriding the CreateSizingSource
method.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.