[問題] call(抓)別的類別的值
我是想把一些訊息經由按個button後insert到SQLite
幾個column型別為UITextField & UITextView順利的insert進SQLite
但還有兩個column 我想存目前的latitude & longitude
Core Location的方法我寫在別的class 重點method如下
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation{
NSLog(@"Latitude = %f", newLocation.coordinate.latitude);
NSLog(@"Longitude = %f", newLocation.coordinate.longitude);
}
請問我要怎樣寫才能抓在別的class(從別的method call也不行)的 newLocation.coordinate.latitude &
newLocation.coordinate.longitude 呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.136.64.243
推
03/12 18:14, , 1F
03/12 18:14, 1F
→
03/12 18:14, , 2F
03/12 18:14, 2F
→
03/12 22:57, , 3F
03/12 22:57, 3F
→
03/13 01:27, , 4F
03/13 01:27, 4F
→
03/13 01:28, , 5F
03/13 01:28, 5F
→
03/13 01:28, , 6F
03/13 01:28, 6F
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章