Question

I decided to use UIRefreshControl in one of my UIViewController instance to support pull to refresh functionality. Since it is only applicable to UITableViewControllers, I converted my controller into a "UITableViewController subclass". However, I am currently making use of Google "Analytics SDK" in my project to track page, views sessions so on and so forth, thus all of my controller classes are already "subclassed" with GAITrackedViewController like below.

Screenshot from Google SDK

How can I use UIRefreshControl without losing the abilities of Google "Analytics SDK" in my view controller?

Was it helpful?

Solution

GAITrackedViewController is only one of the ways add the tracking inside your iOS app.

There are other Manual Screen Measurement tracking, please visit:-

  1. https://developers.google.com/analytics/devguides/collection/ios/v3/screens#manual

  2. GAITrackedViewController and UITableViewController

So, if you want to use UITableViewControllers, you can still use that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top