上一页 1 2 3 4 5 6 7 ··· 9 下一页

2016年2月25日

GCD其他实用场景

摘要: GCD线程间通信dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_async(queue, ^{ NSLog(@"开来一个新线程--%@",[NSThrea 阅读全文

posted @ 2016-02-25 14:52 Creater 阅读(168) 评论(0) 推荐(0)

GCD基本使用

摘要: 主要概念队列 dispatch_queue_t,队列名称在调试时辅助,无论什么队列和任务,线程的创建和回收不需要程序员操作,有队列负责。 串行队列:队列中的任务只会顺序执行(类似跑步) dispatch_queue_t q = dispatch_queue_create(“....”, dispat 阅读全文

posted @ 2016-02-25 14:39 Creater 阅读(165) 评论(0) 推荐(0)

2016年2月24日

IOS中的数据存储 简单总结

摘要: 1. NSKeyedArchiver(加密形式) 2. plist 3. NSUserDefaults 4. writeToFile 5. SQLite3 ==== NSKeyedArchiver ========================================-------CKPe 阅读全文

posted @ 2016-02-24 21:08 Creater 阅读(161) 评论(0) 推荐(0)

2015年2月2日

一张图说清Asp.NET MVC中的 RenderPage、RenderBody、RenderSection

摘要: 阅读全文

posted @ 2015-02-02 11:22 Creater 阅读(373) 评论(0) 推荐(0)

2014年12月24日

Activity 和 Intent

摘要: Activity 和 Intent一、Intent指向Activity二、利用 Intent 向第二个 Activity 传数据三、利用 Intent 接受第二个 Activity 的返回值四、利用 Intent 调用 内置应用程序一、Intent指向Activity ButtonbtnStar... 阅读全文

posted @ 2014-12-24 21:36 Creater 阅读(175) 评论(0) 推荐(0)

创建Activity

摘要: 创建Activity创建 Activity 分为3个步骤:1、创建一个扩展子Activity的class2、创建一个Layout3、在 AndroidMainfest 中 配置这个Activity4、在class中用setContentView方法指向Layout一、创建class推荐类的名称以At... 阅读全文

posted @ 2014-12-24 21:02 Creater 阅读(519) 评论(0) 推荐(0)

2014年2月28日

jqGrid笔记@简单实现

摘要: jqGrid在MVC中的版本是已经通过 HtmlHelper 的扩展方法封装后的产物,webForm版本貌似也将其封装成了服务器端空间,所以我推荐下载原生的jqGrid版本的地址为:http://www.trirand.com/blog/?page_id=6 推荐的Demo学习网址为:http://trirand.com/blog/jqgrid/jqgrid.html Documentation:http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jqgriddocs jqGrid中的一些概念: 我们调用jqGrid的时候用的... 阅读全文

posted @ 2014-02-28 17:10 Creater 阅读(397) 评论(0) 推荐(0)

2014年2月25日

ModelConvertHelper(将DataTable转换成List<model>)

摘要: public class ModelConvertHelper where T : new() { public static IList ConvertToModel(DataTable dt) { // Collection definition IList ts = new List(); // Get model type Type type = typeof(T); string tempName = ""; f... 阅读全文

posted @ 2014-02-25 13:50 Creater 阅读(801) 评论(0) 推荐(0)

2014年2月24日

DateTime.ParseExact

摘要: 今天一个项目到我的机器上后,一句代码:DateTime.Parse("02/10/2014")一直报错,invaild datetime string,猜测是系统时间问题,但是将系统时间格式改变后,仍然没有将问题解决,纠结半天,最终将pase方法改变,换成了parseExact,现在记录parseExact的用法: DateTime.ParseExact("02/10/2014 00:00... 阅读全文

posted @ 2014-02-24 13:53 Creater 阅读(1209) 评论(0) 推荐(0)

2014年2月20日

使Web Api 支持跨域资源共享(CORS)

摘要: Reference:http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api Implementation: 1、创建两个项目,WebApi、WebApp,分别是MVC4 Empty、MVC4 Basic项目。 2、在WebApi项目中,添加一个Controller,template选择为Empty API controller 其代码为:using System.Net.Http;using System.Web.Http;namespace WebServ... 阅读全文

posted @ 2014-02-20 16:51 Creater 阅读(692) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 9 下一页

导航