iOS开发多线程篇—线程间的通信一、简单说明线程间通信:在1个进程中,线程往往不是孤立存在的,多个线程之间需要经常进行通信线程间通信的体现1个线程传递数据给另1个线程在1个线程中执行完特定任务后,转到另1个线程继续执行任务线程间通信常用方法-(void)performSelectorOnMainTh...
分类:
移动开发 时间:
2015-10-27 20:08:33
阅读次数:
174
首先需要引用system32下的taskschd.dll测试环境:win8+vs2012+.net4.0 1 /// 2 /// 删除任务 3 /// 4 /// 5 private static void Delet...
1.在 C# 1.0 及更高版本中,可以按以下示例所示声明委托。// Declare a delegate.delegate void Del(string str);// Declare a method with the same signature as the delegate.static...
测量控件尺寸(宽度、高度)是开发自定义控件的第一步,只有确定尺寸后才能开始画(利用canvas在画布上画,我们所使用的控件实际上都是这样画上去的)。当然,这个尺寸是需要根据控件的各个部分计算出来的,比如:padding、文字大小,间距等。非容器控件的onMeasure下面我们就来看看如何给非容器控件(即直接extends View)这只尺寸的:1.@Override2.protected void...
分类:
移动开发 时间:
2015-10-27 17:41:34
阅读次数:
222
#region 行号 /// /// 行号 /// /// /// private void gridView1_CustomDrawRowIndicator(object sender, D...
-(void)viewDidLayoutSubviews{ if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) { [self.tableView setSeparatorInset:UIEdgeIns...
分类:
移动开发 时间:
2015-10-27 17:34:10
阅读次数:
213
不知道上篇的例子有没有朋友去试过,试过的朋友应该很疑惑,为什么会报错?我们来编译几个文件看看头文件到底是如何导入的;a.cvoid hellow(){ printf("hellow"); }a.h#include "b.h";void hellow();b.cvoid word(){ print.....
分类:
移动开发 时间:
2015-10-27 17:32:12
阅读次数:
208
//你感受一下 一定是类 class Program { static void Main(String[] args) { var t = typeof(A); var pName = t.GetProperty(...
分类:
其他好文 时间:
2015-10-27 17:29:47
阅读次数:
158
java之文件基本操作1 使用 BufferedReader 在控制台读取字符public static void readChar() throws IOException{ char c; InputStreamReader stream=new InputStrea...
分类:
编程语言 时间:
2015-10-27 17:28:11
阅读次数:
198
log4net.config配置文件 Global.asax中Application_Start方法加载log4net.config配置文件 void Application_St...
分类:
Web程序 时间:
2015-10-27 17:19:16
阅读次数:
173