让键盘下去总的来说就是结束编辑或让键盘失去第一响应,我一般用这3种方法:第一种:点击屏幕让键盘结束编辑。-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self.view endEditing:YES];}第二...
分类:
移动开发 时间:
2015-09-08 12:21:30
阅读次数:
403
****动画效果- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [UIView animateWithDuration:1 animations:^{ // 旋转// ...
分类:
移动开发 时间:
2015-09-06 17:57:41
阅读次数:
547
一、UIView封装的动画图层动画有2个致命的缺点:1>默认情况下会反弹。2>你所看到的动画都是假象,图层的属性一直都没有变过所以建议能用UIView就用UIView,实在不行再用图层。1.UIView的移动动画-(void)touchesBegan:(NSSet *)touches withEve...
分类:
移动开发 时间:
2015-09-04 22:33:37
阅读次数:
278
***hitTest 获取最合适的点@implementation HMGreenView- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ NSLog(@"%s",__func__);}// 获取 最合适的 ...
分类:
移动开发 时间:
2015-08-31 17:11:08
阅读次数:
139
*******view 一些方法#import "HMView.h"@implementation HMView// 一个完整的触摸过程// touchesBegan -> touchesMoved -> touchesEnded/* NSArray 集合 有序 NSSet 无序 *//...
分类:
移动开发 时间:
2015-08-31 16:51:06
阅读次数:
222
1.plist属性列表>1.适用对象:仅仅是Foundation框架中自带的一些类,比如:NSString/NSArray/NSDicionary/NSSet/NSNumber/NSData>2.调用对象的writeToFileXXX方法就可以写入文件>3.调用对象的XXXWithcontensOf...
分类:
移动开发 时间:
2015-08-30 17:08:40
阅读次数:
179
一 .字典的定义和基本使用(NSDictionary和NSMutableDictionary)二.集合的定义和基本使用(NSSet和NSMutableSet)三.快速遍历的方法(对数组,字典,集合的快速遍历) 四.oc中的数组排序(类似于冒泡排序的方法) 数组默认排序方法(升序)
分类:
编程语言 时间:
2015-08-29 00:36:50
阅读次数:
190
高级语法精讲一、NSSet、NSMutableSet集合的介绍1)NSSet、NSMutableSet集合,元素是无序的,不能有重复的值。2)用实例方法创建一个不可变集合对象例如://宏定义#define TOBJ(n) [NSNumber numberWithInt:n]NSSet *set1=[...
分类:
移动开发 时间:
2015-08-27 07:07:58
阅读次数:
221
//// main.m// NSSET//// Created by facial on 25/8/15.// Copyright (c) 2015 facial_huo. All rights reserved.//#import int main(int argc, const char * a...
分类:
其他好文 时间:
2015-08-26 22:12:28
阅读次数:
148
- (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event { if(![m_textView isExclusiveTouch]) { [m_textView resignFirstResponder]; } self...
分类:
其他好文 时间:
2015-08-26 17:16:05
阅读次数:
190