码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
POP-一个点击带有放大还原的动画效果
原理监听屏幕的点击事件- (void)touchesBegan:(NSSet *)touches withEvent:(nullable UIEvent *)event;- (void)touchesEnded:(NSSet *)touches withEvent:(nullable UIEvent...
分类:其他好文   时间:2015-12-09 19:29:37    阅读次数:185
IOS-开发日记24 - UITableViewCell点击两次才跳转解决办法
今天写项目的时候发现cell第一次点击的时候是选中一行,等点击第二次的时候才会跳转,在网上查了下解决办法,原来是在写代码的时候自动完成导致的,详细如下原因是因为错用成了这个函数[cpp]view plaincopy-(void)tableView:didDeselectRowAtIndexPath:...
分类:移动开发   时间:2015-12-09 18:55:34    阅读次数:347
整理:Java动态代理
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
android中线程的基本用法
线程的用法:(一)使用继承的方式(耦合性高,不推荐) 定义一个线程,新建一个类继承自 Thread,然后重写父类的 run() 方法,并在里面添加耗时的逻辑,class MyThread extends Thread{ @Override public void run() {...
分类:移动开发   时间:2015-12-09 17:20:26    阅读次数:164
modules
内核模块可以使用两种方式加入进内核: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
Java学习----运算符与表达式
一.运算符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
遍历Map的四种方法
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
线程GCD
#import "ViewController.h"@interfaceViewController ()@end@implementation ViewController- (void)viewDidLoad { [superviewDidLoad]; UIImageView *imagev.....
分类:编程语言   时间:2015-12-09 13:53:24    阅读次数:146
iOS8以上使用CoreLocation定位
1、在使用CoreLocation前需要调用如下函数iOS8对定位进行了一些修改,其中包括定位授权的方法,CLLocationManager增加了下面的两个方法:(1)始终允许访问位置信息- (void)requestAlwaysAuthorization;(2)使用应用程序期间允许访问位置数据- ...
分类:移动开发   时间:2015-12-09 13:51:55    阅读次数:202
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!