Can a datasource determine what calls it?

I’m trying to use the same iOSMobileTableDataSource for tables on different screens. The only difference is that I would like to set the cell.AccessoryType different depending on what uses it.

Other than using a global flag, is there any other way to detect which screen/table is using the datasource?

Dont do this. Make a separate class to manage the data and call into it for the two different iOSMobileTableDataSources. That way if you change your UI down the line you dont make this harder than it needs to be.

I agree with Jason.

In my apps I have a DatasourceGeneral class that holds all methods required for a datasource.

I then create a subclass for each view such as
DatasourcePurchases
DatasourceHistory

The only major difference in each of those subclasses is the RowData method that is overloaded.