小编use*_*001的帖子

如何从iPhone中的NSString中删除空白区域

我从服务器http://www.google.com获得一个网址,但由于它们之间的空间没有打开,请让我知道如何删除它们之间的空间,以便它应该在safari中打开.

iphone nsstring

3
推荐指数
1
解决办法
6632
查看次数

如何在iPhone中从地址中找到纬度和经度

我正在制作一个我正在获取地址的应用程序,我需要从该地址中找到纬度和经度并在地图中显示该位置

- (void)viewDidLoad 
{
    [super viewDidLoad];

    [mapView setMapType:MKMapTypeStandard];
    [mapView setZoomEnabled:YES];
    [mapView setScrollEnabled:YES];
    mapView.showsUserLocation = YES;
    MKCoordinateRegion region = { {0.0, 0.0 }, { 0.0, 0.0 } }; 

    geoCoder.delegate = self;
    [geoCoder start];

    double latitude = 0, longitude = 0;

    region.center.latitude = latitude;   
    region.center.longitude = longitude;  
    region.span.longitudeDelta = 0.01f;
    region.span.latitudeDelta = 0.01f;
    [mapView setRegion:region animated:YES]; 

    [mapView setDelegate:self];

    DisplayMap *ann = [[DisplayMap alloc] init]; 
    ann.title = @"BarRestaurant";
    ann.subtitle = @"..."; 
    ann.coordinate = region.center; 
    [mapView addAnnotation:ann];
}

-(MKAnnotationView *)mapView:(MKMapView *)mV viewForAnnotation:
(id <MKAnnotation>)annotation …
Run Code Online (Sandbox Code Playgroud)

iphone mapkit

3
推荐指数
1
解决办法
4099
查看次数

如何在Objective C中找到NSMutableArray中的最小值

我在NSMutableArray中有7个浮点值短路,我需要找到它们之间的最短值,我如何找到最短的值

math coordinate

3
推荐指数
1
解决办法
1664
查看次数

如何使用Event Kit框架在iPhone中添加事件

我正在制作一个餐厅应用程序,其中我需要在日历中添加事件,事件信息来自服务器,如果客户端添加它应该在日历中显示的指定日期,我已经使用事件工具包框架工作并成功添加了一个事件但是如何使用事件工具包在日历中添加多个事件.

iphone eventkit

2
推荐指数
1
解决办法
9472
查看次数

标签 统计

iphone ×3

coordinate ×1

eventkit ×1

mapkit ×1

math ×1

nsstring ×1