码迷,mamicode.com
首页 >  
搜索关键字:nsditionary nsmutableditionary nsset nsmutableset    ( 346个结果
Object-c集合的简单介绍
NSArray/NSMutableArray/ NSSet/NSMutableSet /NSDictionary/NSMutableDictionary...
分类:其他好文   时间:2015-04-29 23:34:46    阅读次数:294
ios笔记-NSSet
// //  main.m //  NSSet // //  Created by Passer-by on 15-3-23. //  Copyright (c) 2015年 MAC. All rights reserved. // #import int main(int argc, const char * argv[]) {     @autoreleasepool     {   ...
分类:移动开发   时间:2015-04-29 17:07:33    阅读次数:140
要求两个异步任务都完成后, 才能回到主线程:dispatch_group_t
需求:两个异步任务都完成后, 回到主线程/**1.下载图片1和图片22.将图片1和图片2合并成一张图片后显示到imageView上思考:* 下载图片 : 子线程* 等2张图片都下载完毕后, 才回到主线程*/- (void)touchesBegan:(NSSet *)touches withEvent...
分类:编程语言   时间:2015-04-22 11:30:38    阅读次数:101
使用copy声明属性的好处
此处以NSString为例,讲述声明一个NSString属性用copy要优于使用strong。这同样适用于遵守NSCoding协议的不可变类(immutable class),如NSNumber、NSArray、NSSet等。上面提到的这些类都有一个可变(mutable)的版本。选择使用copy的理...
分类:其他好文   时间:2015-04-22 00:32:25    阅读次数:161
OC中NSDictionary(字典)、NSMutableDictionary(可变字典)、NSSet(集合)、NSMutableSet(可变集合)得常用方法
OC中NSDictionary(字典)、NSMutableDictionary(可变字典)、NSSet(集合)、NSMutableSet(可变集合)得常用方法
分类:其他好文   时间:2015-04-12 14:39:21    阅读次数:143
Objective-C NSSet&NSMutableSet以及CountedSet
NSSet说实话,对这个类的应用,还不知道到底什么时候会用到,先过一遍脑子吧,以后有需要用到的时候,不至于陌生!#import int main(int argc, const char * argv[]){ @autoreleasepool { //创建4个NSNumber对象 NS...
分类:其他好文   时间:2015-04-11 22:22:37    阅读次数:127
动画demo
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)even...
分类:其他好文   时间:2015-04-10 15:15:14    阅读次数:123
ios UIScrollView不能响应TouchesBegin:的事件的解决办法
1:@property MyScrollView *scrollView; 2:给MyScrollView,增加类别:MyScrollView+Touch 3:在类别里实现下面三个方法: @implementation MyScrollView (Touch) - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)even...
分类:移动开发   时间:2015-04-07 19:43:54    阅读次数:153
IOS学习:隐藏键盘方法
1、点击界面的其它空白地方隐藏 由于UIViewController是继承自UIResponder的,所以可以覆写- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event;这个开始触摸的方法来取消第一响应者,代码如下:[cpp] ....
分类:移动开发   时间:2015-04-07 13:33:47    阅读次数:136
uiview 的transitionWithView 方法使用
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [UIView transitionWithView:_imageViewFirst duration:1.0f options:UIViewAnimationOp...
分类:其他好文   时间:2015-03-31 12:34:06    阅读次数:184
346条   上一页 1 ... 22 23 24 25 26 ... 35 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!