2011-06-14 110 views
1

您好我需要重新定義IOS法(CLLocationCoordinate2DMake)使用此代碼:重新定義IOS方法

static inline CLLocationCoordinate2D CLLocationCoordinate2DInlineMake(CLLocationDegrees latitude, CLLocationDegrees longitude) 
{ 
    CLLocationCoordinate2D coord; 
    coord.latitude = latitude; 
    coord.longitude = longitude; 
    return coord; 
} 

#define CLLocationCoordinate2DMake CLLocationCoordinate2DInlineMake 

但我不知道在哪裏把這個代碼...

感謝

回答