2016年6月29日

摘要: #import //获得设备型号 -(NSString *)getCurrentDeviceModel { int mib[2]; size_t len; char *machine; mib[0] = CTL_HW; mib[1] = HW_MACHINE; sysctl(mib, 2, NULL, &len, NULL, 0);... 阅读全文
posted @ 2016-06-29 14:33 xunmengzhi 阅读(352) 评论(0) 推荐(0) 编辑

2016年5月5日

摘要: ARC forbids explicit message sendof'dealloc' 在xcode中,打开“Build Setting”,找到“Objective-C Automatic Reference Counting”项,将它的值设置成“NO”,即可。 如果未找到“Objective-C 阅读全文
posted @ 2016-05-05 14:00 xunmengzhi 阅读(369) 评论(0) 推荐(0) 编辑

2014年10月9日

摘要: 首先,我们常见的由MainActivity跳转到另外一个Main1Acticity的代码:1 Intent mIntent=new Intent(MainActivity.this, Main1Activity.class);2 startActivity(mIntent); 一般的情况之... 阅读全文
posted @ 2014-10-09 11:38 xunmengzhi 阅读(990) 评论(0) 推荐(0) 编辑

2014年8月5日

摘要: 1 /** 2 * 获得当前活动APP的包名 3 * 4 * @return 返回当前活动界面是不是桌面 5 */ 6 private boolean isHomeWin() 7 { 8 ActivityManag... 阅读全文
posted @ 2014-08-05 10:19 xunmengzhi 阅读(887) 评论(1) 推荐(0) 编辑

2013年12月6日

摘要: 最近在开发一个app,要用到静默安装等一些小技术,但是引发了问题如下: 在Android SDK Tool r19之后, Export的时候遇到xxx is not translated in yyy, zzz的问题。 例如说"auto_exit" is not translated in zh, ... 阅读全文
posted @ 2013-12-06 16:49 xunmengzhi 阅读(485) 评论(0) 推荐(0) 编辑

2013年9月29日

摘要: SELECT (SELECT COUNT(*) FROM [table] AS t2 WHERE t2.name <= t1.name) AS rowNum, id, nameFROM [table] t1ORDER BY t1.name asc 阅读全文
posted @ 2013-09-29 15:20 xunmengzhi 阅读(1117) 评论(0) 推荐(0) 编辑

2013年9月24日

摘要: 阅读全文
posted @ 2013-09-24 11:58 xunmengzhi 阅读(138) 评论(0) 推荐(0) 编辑

2013年7月8日

摘要: -----------------------java实现代码------------------------- private Animation mRotate; mRotate = AnimationUtils.loadAnimation(Auth.this, R.anim.rotate); ... 阅读全文
posted @ 2013-07-08 16:12 xunmengzhi 阅读(260) 评论(0) 推荐(0) 编辑

2013年4月27日

摘要: 1=======================淡入淡出===================== 1、先看配置文件 当只有一个标签是,动画执行一次 ---从100%透明结束(原图) /> java代码实现 AnimationSet animationSet = n... 阅读全文
posted @ 2013-04-27 15:12 xunmengzhi 阅读(396) 评论(0) 推荐(0) 编辑

2012年7月25日

摘要: IIS服务器已经设置为允许匿名访问,但浏览器客户端仍然要求输入用户名密码. 在服务器上用localhost访问则不需要,用ip访问需要. 解决方法:把IIS匿名访问的用户改为系统管理员就可以了. 阅读全文
posted @ 2012-07-25 15:29 xunmengzhi 阅读(2276) 评论(0) 推荐(0) 编辑