1.事件的完整处理过程:1> 先将事件对象由上往下传递(由父控件传递给子控件), 找到最合适的控件来处理这个事件2> 调用最合适控件的touches.....方法3> 如果调用了[super touches...];就会将事件顺着响应者链条往上传递,传递给上一个响应者4> 接着就会调用上一个响应者的...
分类:
其他好文 时间:
2015-03-15 12:04:13
阅读次数:
108
如果需要在onHandleIntent之前执行一些操作,比如需要停止当前正在执行的任务,可在onStart做这个操作,
需要注意的是必须在onStart函数的最后(执行完我的操作后)调用super.onStart(intent, startId),因为调用super.onStart后就会开始执行onHandleIntent。...
分类:
移动开发 时间:
2015-03-14 23:18:02
阅读次数:
418
效果图如下:
代码如下:
public class MainActivity extends Activity {
private Button btn_delete;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedI...
分类:
移动开发 时间:
2015-03-14 21:47:45
阅读次数:
143
alias别名alias=tpyedfls-lrt时间逆向ls-d只看目录用到的目录/bin,/sbin,/usr/bin,/usr/sbin放命令的目录,sbin是超级用户root才可以用的命令、二进制目录,编译之后sbinsuper的意思/bootyuminstall-ytree/bootLinux内核及引导系统程序所需要的文件目录/dev存放的是Linux的外部..
分类:
系统相关 时间:
2015-03-14 20:10:21
阅读次数:
184
一.构造方法:一个类 被实例化 也就是被new的时候 最先执行的是 构造方法,在java类中,如果不显示声明构造函数,JVM 会给该类一个默认的构造函数。一个类 可以有多个构造函数。构造函数的主要作用 一是用来实例化该类。二是 让该类实例化的时候执行哪些方法,初始化哪些属性。当一个类声明了构造函数以...
分类:
编程语言 时间:
2015-03-14 19:55:36
阅读次数:
230
题目大意给定两个数n和m,如果长度为m的数满足对于每个i(n#include#include#includeusing namespace std;int str[50];int n,m,flag;int judge(int cur){ int sum=0; for(int i=0; i...
分类:
其他好文 时间:
2015-03-14 19:52:35
阅读次数:
137
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
NSInteger selectedIndex=0;
NSIndexPath *seletedIndexPath=[NSIndexPath indexPathForRow:selecte...
分类:
其他好文 时间:
2015-03-14 16:58:40
阅读次数:
286
public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); ...
分类:
移动开发 时间:
2015-03-14 12:18:34
阅读次数:
189
*//*** view加载完毕*/- (void)viewDidLoad{ [super viewDidLoad]; NSLog(@"MJOneViewController-viewDidLoad");}/*** view即将显示到window上**/- (void)viewWillAppea...
分类:
其他好文 时间:
2015-03-14 10:53:20
阅读次数:
122
超类即父类,通过 [super setName: @"a"] 可以调用超类方法复合是指一个对象由其他多个对象组成对象初始化@interface Car : NSObject( Engine *engine;)@end@implementation Car- (id) init{ if(self .....
分类:
其他好文 时间:
2015-03-14 06:08:03
阅读次数:
116