-(void)touchesBeGan:(NSSet *)touches withEvent:(UIEvent *)event{ //1.url NSURL *url = [NSURL URLWithString:@"http://m.baidu.com"]' //2.request NSU...
分类:
移动开发 时间:
2014-11-24 15:11:21
阅读次数:
146
NSArray,NSDictionary,NSSet总结 够全面...
分类:
其他好文 时间:
2014-11-23 13:08:09
阅读次数:
236
在中文手写输入法输入时,会导致app崩溃,报-[UIKBBlurredKeyView candidateList]: unrecognized selector sent ,经折腾证实为- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 错误重载所致。...
分类:
移动开发 时间:
2014-11-19 11:01:21
阅读次数:
208
该模式主要是为了减少模块之间代码耦合性,以及增强模块内代码之间的内聚性.让我们来看看一个实例:1:假设有这么一个需求:我们点击一个视图对象,可以改变该视图的颜色,这个对于初学者来说是一件非常容易做到的事,只要在这个视图类中重写:-(void)touchesBegan:(NSSet*)toucheswith..
分类:
移动开发 时间:
2014-11-13 07:12:43
阅读次数:
234
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint pt = [touch locationInView:self.view].....
分类:
其他好文 时间:
2014-11-12 19:38:16
阅读次数:
192
这几天在做图片上传的时候,碰到一个问题,就是只要我追加图片就会请求超时,以下是代码:
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObje...
分类:
Web程序 时间:
2014-11-10 12:09:49
阅读次数:
196
NSSet到底什么类型,其实它和NSArray功能性质一样,用于存储对象,属于集合;NSSet , NSMutableSet类声明编程接口对象,无序的集合,在内存中存储方式是不连续的,不像NSArray,NSDictionary(都是有序的集合)类声明编程接口对象是有序集合,在内存中存储位置是连续的...
分类:
其他好文 时间:
2014-11-06 19:32:15
阅读次数:
133
源代码地址:http://url.cn/Sj5SSX效果图:工程图:注意,此代码中要加入第三方库PendulumView。RootViewController.m//点击任何处弹出提示-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)...
分类:
其他好文 时间:
2014-10-28 11:52:45
阅读次数:
154
NSSet集合没有顺序NSSet:不可变NSMutableSet:可变集合基本使用: NSSet *s = [NSSet set]; NSSet *s1 = [NSSet setWithObjects:@"jack",@"Rose", nil]; //随机返回一个元素 NSString *s...
分类:
其他好文 时间:
2014-10-28 00:16:49
阅读次数:
261
工程图:注意加入第三方库SVStatusHUD.代码如下://点击任何处出现提示-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self showWithImageStatus];}- (void)showWi...
分类:
其他好文 时间:
2014-10-27 17:30:22
阅读次数:
140