changeset 2388:d84cd4227b21

iOS: Switch to UITableViewDataSource method numberOfRowsInSection:
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 23 Mar 2021 22:35:37 +0000
parents deb2345f4518
children 7b06fc7c8130
files ios/dw.m
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ios/dw.m	Tue Mar 23 22:03:09 2021 +0000
+++ b/ios/dw.m	Tue Mar 23 22:35:37 2021 +0000
@@ -1754,7 +1754,7 @@
     {
         int z;
         int colcount = (int)[tvcols count];
-        int rowcount = (int)[self numberOfRowsInTableView:self];
+        int rowcount = (int)[self numberOfRowsInSection:0];
 
         for(z=0;z<colcount;z++)
         {
@@ -3945,7 +3945,7 @@
     if([object isMemberOfClass:[DWContainer class]])
     {
         DWContainer *cont = handle;
-        result = (int)[cont numberOfRowsInTableView:cont];
+        result = (int)[cont numberOfRowsInSection:0];
     }
     DW_FUNCTION_RETURN_THIS(result);
 }
@@ -3993,7 +3993,7 @@
     if([object isMemberOfClass:[DWContainer class]])
     {
         DWContainer *cont = handle;
-        int count = (int)[cont numberOfRowsInTableView:cont];
+        int count = (int)[cont numberOfRowsInSection:0];
 
         if(index > count)
         {
@@ -4039,7 +4039,7 @@
     if([object isMemberOfClass:[DWContainer class]])
     {
         DWContainer *cont = handle;
-        int count = (int)[cont numberOfRowsInTableView:cont];
+        int count = (int)[cont numberOfRowsInSection:0];
 
         if(index <= count)
         {
@@ -5794,7 +5794,7 @@
     DW_FUNCTION_INIT;
     DWContainer *cont = handle;
     UIScrollView *sv = [cont scrollview];
-    int rowcount = (int)[cont numberOfRowsInTableView:cont];
+    int rowcount = (int)[cont numberOfRowsInSection:0];
     CGPoint offset = [sv contentOffset];
     float change;
 
@@ -5919,7 +5919,7 @@
     DW_LOCAL_POOL_IN;
     DWContainer *cont = handle;
     char *thistext;
-    int x, count = (int)[cont numberOfRowsInTableView:cont];
+    int x, count = (int)[cont numberOfRowsInSection:0];
 
     for(x=0;x<count;x++)
     {
@@ -5955,7 +5955,7 @@
     DW_LOCAL_POOL_IN;
     DWContainer *cont = handle;
     void *thisdata;
-    int x, count = (int)[cont numberOfRowsInTableView:cont];
+    int x, count = (int)[cont numberOfRowsInSection:0];
 
     for(x=0;x<count;x++)
     {
@@ -5990,7 +5990,7 @@
     DW_FUNCTION_INIT;
     DWContainer *cont = handle;
     char *thistext;
-    int x, count = (int)[cont numberOfRowsInTableView:cont];
+    int x, count = (int)[cont numberOfRowsInSection:0];
 
     for(x=0;x<count;x++)
     {
@@ -6021,7 +6021,7 @@
     DW_FUNCTION_INIT;
     DWContainer *cont = handle;
     void *thisdata;
-    int x, count = (int)[cont numberOfRowsInTableView:cont];
+    int x, count = (int)[cont numberOfRowsInSection:0];
 
     for(x=0;x<count;x++)
     {