本文非本人撰写[cpp]view plaincopy@interfaceNSObject(NSDelayedPerforming)-(void)performSelector:(SEL)aSelectorwithObject:(id)anArgumentafterDelay:(NSTimeInter...
分类:
移动开发 时间:
2015-03-06 22:09:26
阅读次数:
341
初始化:1.动态方法- (id)initWithTarget:(id)target selector:(SEL)selector object:(id)argument;// 初始化线程NSThread *thread = [[NSThread alloc] initWithTarget:self ...
分类:
移动开发 时间:
2015-03-06 19:00:13
阅读次数:
150
1.在object-c运行时替换私有类的方法runtime完全解读2.运行时给一个对象增加方法//C方法形式定义被增加的方法void helloLog(id self, SEL _cmd){ NSLog(@"helloLog");}//OC方法形式定义被增加方法- (void)helloLog{ ....
分类:
其他好文 时间:
2015-03-04 18:56:17
阅读次数:
111
1.- (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg waitUntilDone:(BOOL)wait- (void)performSelectorOnMainThread:(SEL)aSelector wit...
分类:
其他好文 时间:
2015-03-04 16:32:41
阅读次数:
151
一、在objc/message.h中常用的运行时函数
#import
/**
*1.对象调用方法
*/
id objc_msgSend(id self, SEL op, ...)
id self://调用方法的对象
SEL://调用的方法
.....
分类:
其他好文 时间:
2015-03-03 20:39:18
阅读次数:
151
sql 解析字符串添加到临时表中 sql存储过程in 参数输入 解决方法把字符串解析 添加到 临时表中SELECT * into #临时表 FROM dbo.Func_SplitOneColumnTabel('001,gf', ',')select * from 表 where ID in (sel...
分类:
数据库 时间:
2015-03-03 11:23:29
阅读次数:
151
$cache=S('newskey'); if(!$cache){ $cache=M('news')->cache(true,60,'newskey')->where('state=1')->order('publishtime desc')->limit(5)->sel...
分类:
Web程序 时间:
2015-03-02 14:27:04
阅读次数:
174
可以打印后慢慢一个一个查找,有利于记忆。核心· jQuery 核心函数 o jQuery([sel,[context]]) o jQuery(html,[ownerDoc])1.8* o jQuery(callback) o jQuery.holdReady(hold)1.6+ · jQu...
分类:
Web程序 时间:
2015-03-02 10:50:03
阅读次数:
182
自定义标题栏按钮@implementation SNTitleButton- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { //图片居中 sel...
分类:
其他好文 时间:
2015-03-01 23:47:19
阅读次数:
183
//// main.m// 08-SEL//// Created by apple on 13-8-8.// Copyright (c) 2013年 itcast. All rights reserved.///*SEL其实是对方法的一种包装,将方法包装成一个SEL类型的数据,去找对应的方法地址。找...
分类:
其他好文 时间:
2015-02-28 21:32:19
阅读次数:
621