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.

有帮助吗?

解决方案

Just call disconnect and connect on your BumpClient whenever you feel it is appropriate... see here.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top