让ios程序一直保持在后台运行。首先我在xx-info.plist 里的 "Required background modes" 里加入"App provides Voice over IP services"
然后在delegate里加入以下代码,原理是进入后台时程序会在600秒那样结束任务,我做的就是在结束任务前新开一个任务,再结束旧任务,这样就一直的在后台运行,希望可能帮助到更多的人,我也查了很久才找到这个方法的。...
分类:
移动开发 时间:
2014-11-19 16:04:52
阅读次数:
294
Hibernate: 使用步骤: 将\hibernate-release\lib\required添置构建路径 将sqljdbc添加构建路径 在src下创建hibernate.cfg.xml(有模板)在hibernate开发包下 hibernate-release-4.3.6.Final\...
分类:
Web程序 时间:
2014-11-19 07:28:06
阅读次数:
309
使用hibernate连接mysql数据库1:项目搭建好之后,在lib包中添加必要的jar包,和mysql数据库驱动jar包:jar包可以在hibernate的下载包(hibernate3.3.2.GA)中找到,这里所需要的jar包是:hibernate3.jar,lib/required目录下的所...
分类:
数据库 时间:
2014-11-18 23:54:11
阅读次数:
329
崩溃信息:Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews...
分类:
移动开发 时间:
2014-11-17 19:18:51
阅读次数:
245
JQuery Validate使用总结:一、导入js库二、默认校验规则(1)required:true 必输字段(2)remote:"check.php" 使用ajax方法调用check.php验证输入值(3)email:true ...
分类:
Web程序 时间:
2014-11-17 17:27:11
阅读次数:
257
今天用因为用git,所以把项目移出了workspace(git不推荐将repository放到workspace里面),然后就报错: Archive for required library XXX in project cannot be read or is not a valid ZIP file 发现项目下的...
分类:
移动开发 时间:
2014-11-16 18:57:45
阅读次数:
185
本地搭建SAE的python环境时,总是报如下错误:1 F:\workspace\dev\python\frikyskice\1>dev_server.py2 Traceback (most recent call last):3 File "C:\Python27\Scripts\dev_se.....
分类:
编程语言 时间:
2014-11-15 15:27:33
阅读次数:
554
用spring自动装配,如果把出错地方的@Autowired改为Autowired(required=false)不会出现错误。但是同时不会加载出错的类 如: @Autowired BaseDao dao;这错了 改为(找不到类时也报错) @Autowired(required=fals...
分类:
编程语言 时间:
2014-11-14 16:02:55
阅读次数:
163
Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_...
分类:
Web程序 时间:
2014-11-13 16:21:53
阅读次数:
758
if you pass on an already existing Mat object, which has already allocated the required space for the matrix, this will be reused. The idea is that ea...
分类:
其他好文 时间:
2014-11-12 21:13:24
阅读次数:
336