第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

MKAnnotationView單擊“ DetailDesclosure”按鈕時推送到視圖控制器

MKAnnotationView單擊“ DetailDesclosure”按鈕時推送到視圖控制器

牛魔王的故事 2019-10-12 13:36:07
當(dāng)我在顯示的地圖上單擊DetailDisclosure時,我想切換視圖。我當(dāng)前的代碼如下:- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control{    DetailViewController *detailViewController = [[DetailViewController alloc]     initWithNibName:@"DetailViewController" bundle:nil];    detailViewController.title = dictionary[@"placeLatitude"]    [self.navigationController pushViewController:detailViewController animated:YES];}我可以使用它推送到視圖控制器,但是我還沒有弄清楚如何強制它從用于生成地圖的JSON數(shù)組中提取細(xì)節(jié)。我正在拉這樣的數(shù)據(jù)來生成地圖: for (NSDictionary *dictionary in array) {    // retrieve latitude and longitude from the dictionary entry    location.latitude = [dictionary[@"placeLatitude"] doubleValue];    location.longitude = [dictionary[@"placeLongitude"] doubleValue];   //CAN I LOAD THE TITLE/ID OF THE LOCATION HERE?我知道我有點偏離目標(biāo)了。也許朝正確的方向踢會有所幫助。謝謝!
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 494 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號