小编Viv*_*hah的帖子

应用商店中的应用提交会发出警告"缺少64位支持"

我正在将应用程序上传到App Store.但不幸的是,我收到了以下警告. 由于警告ITMS-9000导致存档提交失败:

app-store ios

7
推荐指数
1
解决办法
5321
查看次数

在iOS应用程序中释放SKMap(Skobbler)的内存

我正在制作一个使用SKMap(Skobbler)的iOS应用程序.当SKMap打开时,我的应用会占用大量内存.当我移动到应用程序的其他页面时,更多内容不会释放内存.

我在viewWillDisappear方法中放了一些代码来释放SKMap的内存,

[[SKRoutingService sharedInstance].mapView clearAllAnnotations];
[SKRoutingService sharedInstance].routingDelegate = nil;
[SKRoutingService sharedInstance].navigationDelegate=nil;
[[AudioService sharedInstance]cancel];
[[SKRoutingService sharedInstance]stopNavigation];
[[SKRoutingService sharedInstance]clearCurrentRoutes];
[[SKRoutingService sharedInstance]clearAllRoutesFromCache];
[SKRoutingService sharedInstance].mapView = nil;

//self.mapView is SKMap
self.mapView.settings.displayMode = SKMapDisplayMode2D;
self.mapView.delegate=nil;
[self.mapView removeFromSuperview];
self.mapView=nil;
Run Code Online (Sandbox Code Playgroud)

如果您有任何解决方案来释放内存,请帮助我.

objective-c map ios skmaps

5
推荐指数
1
解决办法
241
查看次数

一段时间后,NSTimer在后台停止射击

嘿我正在开发一个应用程序,我必须每隔30秒进行一次API调用,所以我为它创建了NSTimer.但当我的应用程序进入后台计时器后3-4分钟停止发射.因此它在后台只能工作3-4分钟,但之后却没有.如何修改我的代码,以便计时器不会停止.

这是我的一些代码.

- (IBAction)didTapStart:(id)sender {
    NSLog(@"hey i m in the timer ..%@",[NSDate date]);
    [objTimer invalidate];
    objTimer=nil;

    UIBackgroundTaskIdentifier bgTask = UIBackgroundTaskInvalid;
    UIApplication  *app = [UIApplication sharedApplication];
    bgTask = [app beginBackgroundTaskWithExpirationHandler:^{
        [app endBackgroundTask:bgTask];
    }];
    objTimer = [NSTimer scheduledTimerWithTimeInterval:30.0 target:self
                                                       selector:@selector(methodFromTimer) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:objTimer forMode:UITrackingRunLoopMode];
}

-(void)methodFromTimer{
    [LOG debug:@"ViewController.m ::methodFromTimer " Message:[NSString stringWithFormat:@"hey i m from timer ....%@",[NSDate date] ]];
    NSLog(@"hey i m from timer ....%@",[NSDate date]);
}
Run Code Online (Sandbox Code Playgroud)

我甚至用以下内容更改了代码:

[[NSRunLoop mainRunLoop] addTimer:objTimer forMode:NSRunLoopCommonModes];
Run Code Online (Sandbox Code Playgroud)

这也不起作用.

timer nstimer ios

4
推荐指数
1
解决办法
7779
查看次数

Xamarin表单(跨平台):ListView中的多种类型的单元格

我是Xamarin的新手.我有一个要求,我必须实现一个ListView或说tableView有多个不同的类型大小的单元格.而且我还必须为特定的单元格部分添加Header,并且我的一些自定义单元格中有一个水平滚动.在这里,我附上了我的listview要求的图像.

我之前在iOS原生UITableView中做过这件事,但不知道Xamarin交叉平台是如何完成的,任何人都可以帮我解决这个问题吗?

xaml listview cross-platform xamarin xamarin.forms

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