类:NSObject 、NSString、NSMutableString、NSNumber、NSValue、NSDate、NSDateFormatter、NSRange、Collections:NSSet、NSArray(Ordered、Copy)、NSMutableArray、NSMutableS...
分类:
移动开发 时间:
2015-12-14 21:07:36
阅读次数:
182
#import intmain(intargc,constchar*argv[]){@autoreleasepool{NSSet*set1=[NSSetsetWithObjects:@"a",@"b",@"c",@"d",nil];NSSet*set2=[[NSSetalloc]initWithOb...
分类:
其他好文 时间:
2015-12-13 17:14:51
阅读次数:
119
原理监听屏幕的点击事件- (void)touchesBegan:(NSSet *)touches withEvent:(nullable UIEvent *)event;- (void)touchesEnded:(NSSet *)touches withEvent:(nullable UIEvent...
分类:
其他好文 时间:
2015-12-09 19:29:37
阅读次数:
185
一、Foundation框架中一些常用的类字符串型:NSString:不可变字符串NSMutableString:可变字符串集合型:1)NSArray:OC不可变数组NSMutableArray:可变数组2)NSSet:NSMutableSet:3)NSDictioraryNSMutableDict...
分类:
其他好文 时间:
2015-12-08 14:13:53
阅读次数:
153
AFHTTPSessionManager * manager = [AFHTTPSessionManager manager]; manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"applicat....
分类:
其他好文 时间:
2015-12-05 17:30:54
阅读次数:
270
原文:http://rypress.com/tutorials/objective-c/data-types/nssetNSSetNSSet,NSArray, andNSDictionaryare the three core collection classes defined by the Fo...
分类:
其他好文 时间:
2015-11-30 17:43:57
阅读次数:
174
一.UITouch 1 //任何视图都可以触发此方法 2 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 3 NSLog(@"视图被触摸了"); 4 } 5 6 - (void)touchesCancel...
分类:
移动开发 时间:
2015-11-29 22:54:38
阅读次数:
445
界面类的对象一般都是可以接触点击事件的,只不过有的默认接受,有的需要设定属性。userInteractionEnabled属性设置为YES的时候就可以接受点击事件了 -(void)touchesBegan:(NSSet*) touches withEvent:(UIEvent*) event- (....
分类:
其他好文 时间:
2015-11-24 20:14:04
阅读次数:
118
瓦片地图-(void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ CCNode* node = [self getChildByTag:TileMapNode]; CCTMXTiledMap* tileMap ...
分类:
编程语言 时间:
2015-11-24 16:14:02
阅读次数:
205
iOS 收起键盘的几种方式1.一般的view上收起键盘// 手势- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self.cellphone resignFirstResponder]; [self.passw.....
分类:
移动开发 时间:
2015-11-21 14:25:02
阅读次数:
281