我正在开发一个带有地图的应用程序,用户可以在其中绘制多边形区域.
我的问题是可以用结绘制多边形(见图)(我不知道结是否是正确的词).我没有找到阻止多边形得到结的简单方法.对于附加图像的情况,我希望移除小卷曲,甚至要平滑轮廓
你知道一种方法吗?

绘制多边形当用户触摸屏幕的过程中,确实使用MKPolyline,MKPolygon并且MKOverlay如下所示:
- (void)touchesBegan:(UITouch*)touch
{
CGPoint location = [touch locationInView:self.mapView];
CLLocationCoordinate2D coordinate = [self.mapView convertPoint:location toCoordinateFromView:self.mapView];
[self.coordinates addObject:[NSValue valueWithMKCoordinate:coordinate]];
}
- (void)touchesMoved:(UITouch*)touch
{
CGPoint location = [touch locationInView:self.mapView];
CLLocationCoordinate2D coordinate = [self.mapView convertPoint:location toCoordinateFromView:self.mapView];
[self.coordinates addObject:[NSValue valueWithMKCoordinate:coordinate]];
}
- (void)touchesEnded:(UITouch*)touch
{
CGPoint location = [touch locationInView:self.mapView];
CLLocationCoordinate2D coordinate = [self.mapView convertPoint:location toCoordinateFromView:self.mapView];
[self.coordinates addObject:[NSValue valueWithMKCoordinate:coordinate]];
[self didTouchUpInsideDrawButton:nil];
}
- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id <MKOverlay>)overlay
{
MKOverlayPathView *overlayPathView;
if ([overlay isKindOfClass:[MKPolygon …Run Code Online (Sandbox Code Playgroud) 我需要使用Xcode 6将iPhone应用程序提交给我的客户的iTunes Connect帐户.
使用Xcode 5,在提交过程中,我们需要提供提交应用程序的iTunes Connect登录凭据.只需要让客户的团队代理为我设置一个iTunes Connect用户帐户.这个过程很好.
在Xcode 6中,应用程序提交已更改,并且不会要求iTunes Connect登录.所以它似乎使用与Xcode中配置的Apple ID相对应的默认iTunes Connect帐户.
因此,尝试为我的客户的帐户上传应用程序时出现以下错误:"错误ITMS-4088:"组织XXXX无权使用Apple Id XXXXXXXXX修改应用程序.请使用有权访问此应用程序的组织的帐户重试."在SoftwareAssets"
有人你已经遇到过这个问题吗?你知道我该如何解决它?谢谢
编辑(关于我的设置的一些精确度):我正在为几个客户工作,因此我按如下方式配置了我的Apple帐户: