cari

Rumah  >  Soal Jawab  >  teks badan

ios - AVgepoint.geopointForCurrentLocationInBackground( )括号里的参数怎么写?

var point = AVGeoPoint.geoPointForCurrentLocationInBackground( ((AVGeoPoint!,NSError!) -> Void)!)
query.limit = 30
query,wherKey("location",nearGeopoint:point,withinKilometers:20)

其中括号中的 ((AVGeoPoint!,NSError!) -> Void)! 是出现的提示代码,求问括号里的参数具体应该怎么写?

大家讲道理大家讲道理2893 hari yang lalu407

membalas semua(2)saya akan balas

  • PHP中文网

    PHP中文网2017-04-17 17:58:54

    (AVGeoPoint!,NSError!) -> Void) Ini memerlukan anda memasukkan fungsi, anda boleh terus menggunakan fungsi tanpa nama (penutupan)
    { (titik, ralat) -> >

        //数据处理

    }

    balas
    0
  • 迷茫

    迷茫2017-04-17 17:58:54

    Adakah kaedah ini di seluruh sistem AVGeoPoint.geoPointForCurrentLocationInBackground

    Parameter yang ditulis seperti ini ialah penunjuk fungsi

    balas
    0
  • Batalbalas