原理监听屏幕的点击事件- (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
一、概述iPhone中处理触摸屏的操作,在3.2之前是主要使用的是由UIResponder而来的如下4种方式:- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event- (void)touchesCancelled:(NSSet...
分类:
移动开发 时间:
2015-11-20 21:22:29
阅读次数:
173
一、效果二、代码实现- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self sheetTest1];}/**注意:不能在上拉菜单中添加文本框 如果强行添加了文本框,会报运行时错误: reason: 'Tex...
分类:
其他好文 时间:
2015-11-18 16:27:37
阅读次数:
143