Вопрос

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