原理监听屏幕的点击事件- (void)touchesBegan:(NSSet *)touches withEvent:(nullable UIEvent *)event;- (void)touchesEnded:(NSSet *)touches withEvent:(nullable UIEvent...
分类:
其他好文 时间:
2015-12-09 19:29:37
阅读次数:
185
今天写项目的时候发现cell第一次点击的时候是选中一行,等点击第二次的时候才会跳转,在网上查了下解决办法,原来是在写代码的时候自动完成导致的,详细如下原因是因为错用成了这个函数[cpp]view plaincopy-(void)tableView:didDeselectRowAtIndexPath:...
分类:
移动开发 时间:
2015-12-09 18:55:34
阅读次数:
347
1.定义业务接口public interface IPerson { public void say(); public void run(); public void sleep();}2.实现业务接口public class PersonImpl implements IPerson { @Ov...
分类:
编程语言 时间:
2015-12-09 17:24:34
阅读次数:
145
线程的用法:(一)使用继承的方式(耦合性高,不推荐) 定义一个线程,新建一个类继承自 Thread,然后重写父类的 run() 方法,并在里面添加耗时的逻辑,class MyThread extends Thread{ @Override public void run() {...
分类:
移动开发 时间:
2015-12-09 17:20:26
阅读次数:
164
内核模块可以使用两种方式加入进内核:1.使用insmod等命令动态加载到内核(obj-m);2.作为内核的一部分静态编译进内核(obj-y);在linux/init.h文件中typedef int (*initcall_t)(void);typedef void (*exitcall_t)(void...
分类:
其他好文 时间:
2015-12-09 17:13:21
阅读次数:
136
1.无成段更新#define lson l , m , rt b)return a;else return b;}int min(int a,int b){if(a> 1; build(lson); build(rson); PushUP(rt);}void update(int ...
分类:
其他好文 时间:
2015-12-09 17:07:16
阅读次数:
171
一.运算符1.算术运算符+ - * / % ++ --public class Test7 { public static void main(String[] args) { int x = 10; int y = 3; float f = 3...
分类:
编程语言 时间:
2015-12-09 15:12:54
阅读次数:
155
public static void main(String[] args) { Map map = new HashMap(); map.put("1", "value1"); map.put("2", "value2"); map.put(...
分类:
其他好文 时间:
2015-12-09 13:56:07
阅读次数:
117
#import "ViewController.h"@interfaceViewController ()@end@implementation ViewController- (void)viewDidLoad { [superviewDidLoad]; UIImageView *imagev.....
分类:
编程语言 时间:
2015-12-09 13:53:24
阅读次数:
146
1、在使用CoreLocation前需要调用如下函数iOS8对定位进行了一些修改,其中包括定位授权的方法,CLLocationManager增加了下面的两个方法:(1)始终允许访问位置信息- (void)requestAlwaysAuthorization;(2)使用应用程序期间允许访问位置数据- ...
分类:
移动开发 时间:
2015-12-09 13:51:55
阅读次数:
202