Just call disconnect
and connect
on your BumpClient
whenever you feel it is appropriate... see here.
Is it possible to activate & deactivate bump api within a single viewcontroller?
-
29-03-2022 - |
题
I'm using the bump api which is available here. I have this completely setup in my app, but what I want to do is only have it activated within a single viewcontroller. I notice that regardless of the view you're in the bump is still activated.
I didn't install the code in the AppDelegate.m file, its in a ViewController.m file. After my last test, it obvious it doesn't matter where I put the code.
So I'm wondering if there is a way to turn it off(disconnect)? I would like to do this when a user switches views.
解决方案
不隶属于 StackOverflow