Replace legacy getStats with standard getStats in the iOS example

Bug: webrtc:12688
Change-Id: I039cdae7647738d5f17b229c1137b72bf4aa7be0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/219580
Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
Commit-Queue: Kári Helgason <kthelgason@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34063}
diff --git a/examples/objc/AppRTCMobile/ios/ARDStatsView.m b/examples/objc/AppRTCMobile/ios/ARDStatsView.m
index bd97d30..867ba5b 100644
--- a/examples/objc/AppRTCMobile/ios/ARDStatsView.m
+++ b/examples/objc/AppRTCMobile/ios/ARDStatsView.m
@@ -34,10 +34,8 @@
   return self;
 }
 
-- (void)setStats:(NSArray *)stats {
-  for (RTC_OBJC_TYPE(RTCLegacyStatsReport) * report in stats) {
-    [_statsBuilder parseStatsReport:report];
-  }
+- (void)setStats:(RTC_OBJC_TYPE(RTCStatisticsReport) *)stats {
+  _statsBuilder.stats = stats;
   _statsLabel.text = _statsBuilder.statsString;
 }