码迷,mamicode.com
首页 >  
搜索关键字:selector    ( 3894个结果
[IOS+PHP Jason格式的发送与解析]
服务器端PHP文件connect.php:IOS段解析:- (IBAction)clickbutton:(id)sender { [NSThread detachNewThreadSelector:@selector(getjasonstring) toTarget:self withObje...
分类:移动开发   时间:2014-09-04 23:29:30    阅读次数:189
Foundation 框架 NSArray、NSMutableArray排序
一、使用selector对数组进行排序(无返回) 数组 book 中包含 AddressCard对象。 1.对数组调用 sortUsingSelector方法1 -(void) sortByName2 {3 SEL s = @selector(compareName:);4 [b...
分类:其他好文   时间:2014-09-04 16:55:49    阅读次数:197
zzz Objective-C的消息传递机制
各种语言都有些传递函数的方法:C语言中可以使用函数指针,C++中有函数引用、仿函数和lambda,Objective-C里也有选择器(selector)和block。不过由于iOS SDK中的大部分API都是selector的方式,所以本文就重点讲述selector了。Objective-C和我接触...
分类:其他好文   时间:2014-09-04 11:44:29    阅读次数:258
IOS 退出App
UIApplication *app = [UIApplication sharedApplication]; [app performSelector:@selector(suspend)]; //wait 2 seconds while app is going background [NST....
分类:移动开发   时间:2014-09-04 09:38:27    阅读次数:183
IOS中定时器NSTimer的开启与关闭
调用一次计时器方法:[cpp]view plaincopymyTimer=[NSTimerscheduledTimerWithTimeInterval:1.5target:selfselector:@selector(scrollTimer)userInfo:nilrepeats:NO];//不重复...
分类:移动开发   时间:2014-09-03 13:00:46    阅读次数:234
Method and apparatus for loading a segment register in a microprocessor capable of operating in multiple modes
A microprocessor contains an address generation unit, including a segment block, for loadingdescriptordata and a segment selector in a segment registe...
分类:移动开发   时间:2014-09-03 00:17:25    阅读次数:336
iOS 判断设备型号的三种方式
方法一://***宏定义#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainSc...
分类:移动开发   时间:2014-09-01 12:06:03    阅读次数:238
ios-根据单元格里的控件tag值,在方法外获得对应的section与row的值
在cell的代理方法里:cellForRowAtIndexPathbtn.tag = indexPath.section *100 + indexPath.row;[cell.exitPersonBtn addTarget:self action:@selector(exitPersonBtnCli...
分类:移动开发   时间:2014-09-01 12:05:33    阅读次数:285
CSS系列(7)CSS类选择器Class详解
这一篇文章,以笔记形式写。1, CSS 类选择器详解http://www.w3school.com.cn/css/css_selector_class.asp知识点:(1) 使用类选择器的前提是给标签添加上类属性,比如(2) 类选择器的语法为:*.important {color:red;},不过一...
分类:Web程序   时间:2014-08-29 23:59:48    阅读次数:414
Android selector item 属性大全(按钮按下不同效果)
必须。必须是根元素。包含一个或多个元素。 Attributes:xmlns:androidString,必须。定义XML的命名空间,必须是“http://schemas.android.com/apk/res/android”. android:state_pressed ...
分类:移动开发   时间:2014-08-29 19:45:48    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!