SORU
29 NİSAN 2011, Cuma


İOS olmadığını kontrol uygulaması arka planda

Eğer uygulamayı arka planda çalışır durumda olup olmadığını kontrol etmek istiyorum.

İçinde:

locationManagerDidUpdateLocation {
    if(app is runing in background){
        do this
    }
}

CEVAP
5 ŞUBAT 2013, Salı


UIApplicationState state = [[UIApplication sharedApplication] applicationState];
if (state == UIApplicationStateBackground || state == UIApplicationStateInactive)
{
   //Do checking here.
}

Bu sorunun çözümünde yardımcı olabilir.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • 0TACTICAL0HIPPY0

    0TACTICAL0HI

    30 EYLÜL 2012
  • dhcrr's channel

    dhcrr's chan

    2 Ocak 2007
  • VvCompHelpvV

    VvCompHelpvV

    4 EYLÜL 2007