var temppoints: [BMKMapPoint] = [BMKMapPoint](conut: planPointCounts)

解决方案 »

  1.   

     BMKMapPoint* temppoints = new BMKMapPoint[planPointCounts];
    你确定这句是oc代码 ?如果是oc的话,应该也是如下这样的:
    BMKMapPoint* temppoints = [[BMKMapPoint alloc]  initWithXXX];
    swift 版的:
    var temppoints:[BMKMapPoint]  =  [BMKMapPoint](count: planPointCounts, repeatedValue: CGPointZero);
      

  2.   

    BMKMapPoint是结构体,不是OC对象。
      

  3.   

    结构体在Swift里有极大增强,完全可以取代简单类,使用方式与类差不多。