我目前有一个地图视图,上面有一些注释.我有自定义图像的注释.我试图解决的问题是图像的敏感性.当我试图拖动它们时,感觉我必须触摸确切的中心才能集中注意力.有没有办法让触摸界更大?
所以我使用预先实现的项目调用FreeRDP.我已正确构建项目并且它可以正常工作.我想使用一些外部库,并希望使用可可豆荚管理它们.我完成了创建pod文件的过程,并且成功完成了.直到我构建它,我得到一个错误,说无法找到库-lPods.
我似乎无法从Cocoapods找到一个解决这个问题的好解决方案.有谁知道如何解决这个问题?
我的pod文件如下所示:
平台:ios,"6.0"
target:测试pod'EasyTableView','〜> 1.1.1'
结束
我试图让这个工作正常,但它总是似乎早在174秒(2.9分钟)结束.我一直在线关注如何使用beginBackgroundTaskWithExpirationHandler的每个教程,我没有看到我的代码有任何问题.我需要这个结束时间为8.5分钟.在调用到期处理程序之前,endBackgroundTask方法甚至不会调用.这有什么不对吗?
- (void)applicationDidEnterBackground:(UIApplication *)application {
if([[UIDevice currentDevice] respondsToSelector:@selector(isMultitaskingSupported)])
{
NSLog(@"Multitasking Supported");
backgroundTask = [application beginBackgroundTaskWithExpirationHandler:^ {
NSLog(@"Terminated");
//Clean up code. Tell the system that we are done.
[application endBackgroundTask: backgroundTask];
backgroundTask = UIBackgroundTaskInvalid;
}];
timer = [NSTimer scheduledTimerWithTimeInterval:1
target:self
selector:@selector(count:)
userInfo:nil
repeats:YES];
}
else
{
NSLog(@"Multitasking Not Supported");
}
}
-(void)turnOffDesktops:(NSTimer *)time {
//do smth
if(count < (60*8.5)){
NSLog(@"%d",count);
count++;
}else{
[application endBackgroundTask: backgroundTask];
backgroundTask = UIBackgroundTaskInvalid;
[timer invalidate];
timer = nil;
count = 0;
}
Run Code Online (Sandbox Code Playgroud)
}