服务器端PHP文件connect.php:IOS段解析:- (IBAction)clickbutton:(id)sender { [NSThread detachNewThreadSelector:@selector(getjasonstring) toTarget:self withObje...
分类:
移动开发 时间:
2014-09-04 23:29:30
阅读次数:
189
一、使用selector对数组进行排序(无返回) 数组 book 中包含 AddressCard对象。 1.对数组调用 sortUsingSelector方法1 -(void) sortByName2 {3 SEL s = @selector(compareName:);4 [b...
分类:
其他好文 时间:
2014-09-04 16:55:49
阅读次数:
197
各种语言都有些传递函数的方法:C语言中可以使用函数指针,C++中有函数引用、仿函数和lambda,Objective-C里也有选择器(selector)和block。不过由于iOS SDK中的大部分API都是selector的方式,所以本文就重点讲述selector了。Objective-C和我接触...
分类:
其他好文 时间:
2014-09-04 11:44:29
阅读次数:
258
UIApplication *app = [UIApplication sharedApplication]; [app performSelector:@selector(suspend)]; //wait 2 seconds while app is going background [NST....
分类:
移动开发 时间:
2014-09-04 09:38:27
阅读次数:
183
调用一次计时器方法:[cpp]view plaincopymyTimer=[NSTimerscheduledTimerWithTimeInterval:1.5target:selfselector:@selector(scrollTimer)userInfo:nilrepeats:NO];//不重复...
分类:
移动开发 时间:
2014-09-03 13:00:46
阅读次数:
234
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
方法一://***宏定义#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainSc...
分类:
移动开发 时间:
2014-09-01 12:06:03
阅读次数:
238
在cell的代理方法里:cellForRowAtIndexPathbtn.tag = indexPath.section *100 + indexPath.row;[cell.exitPersonBtn addTarget:self action:@selector(exitPersonBtnCli...
分类:
移动开发 时间:
2014-09-01 12:05:33
阅读次数:
285
这一篇文章,以笔记形式写。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
必须。必须是根元素。包含一个或多个元素。 Attributes:xmlns:androidString,必须。定义XML的命名空间,必须是“http://schemas.android.com/apk/res/android”. android:state_pressed ...
分类:
移动开发 时间:
2014-08-29 19:45:48
阅读次数:
230