数组 一.认识数组 oc中可以把NSObject对象的子类放到数组这个集合中,但是int、float、double等基础数据类型需要先进行转换才可以存入数组。 oc中数组以NS开头,其中分为可变数组和不可变数组; 1.不可变数组(NSArray) 数组在创建的时候被初始化之后,不可以再次进行增、删、
分类:
编程语言 时间:
2016-03-16 22:15:06
阅读次数:
209
1: //字条串是否包含有某字符串 gzz0307 这个不会崩溃ios7 if ([getString rangeOfString:@"="].location == NSNotFound) { MCLog(@"==不做处理=="); } else { MCLog(@"包含 "); NSArray
分类:
其他好文 时间:
2016-03-16 17:16:47
阅读次数:
127
IndoorAtlas室内导航iOS版使用方法: 引入协议 IALocationManagerDelegate 实现方法 - (void)indoorLocationManager:(IALocationManager *)manager didUpdateLocations:(NSArray *)
分类:
其他好文 时间:
2016-03-15 23:17:30
阅读次数:
262
说明 .xib文件在经过编译器编译之后会变成.nib文件 方法1 NSArray *array=[[NSBundle mainBundle]loadNibNamed:@"ShopView" owner:nil options:nil]; [self.view addSubview:[array fi
分类:
其他好文 时间:
2016-03-15 00:26:53
阅读次数:
221
//准备开始布局 - (void)prepareLayout {} //返回的是决定cell样式的数组 - (NSArray<UICollectionViewLayoutAttributes *> *)layoutAttributesForElementsInRect:(CGRect)rec
分类:
其他好文 时间:
2016-03-13 15:48:37
阅读次数:
163
//自己处理好自己的视频,压缩后生成data - (void)uploadVideos:(NSArray *)videos andSource:(NSString *)source andUserId:(NSString *)userId andTitle:(NSString *)title and
分类:
Web程序 时间:
2016-03-13 14:09:24
阅读次数:
140
控件加载图片,plist,懒加载,序列帧动画,添加动画效果。 IOS中有2种加载图片的方式、 方式一:有缓存(图片所占用的内存会一直停留在程序中) plist: 一般可以使用属性列表文件存储NSArray或者NSDictionary之类的数据,这种属性列表文件的扩展名是plist,因此也成为“Pli
分类:
移动开发 时间:
2016-03-12 22:43:40
阅读次数:
238
效果图 #import "ViewController.h" @interface ViewController () @property(strong,nonatomic)UIPickerView *myPickView1; @property(strong,nonatomic)NSArray *
分类:
移动开发 时间:
2016-03-11 23:57:34
阅读次数:
915
数组,做为一种常用的数据类型,频繁出现在编码中,其中肯定少不了对数组的遍历,本博文对数组遍历,进行一下自己的归纳,如果是大牛,一笑而过就好,互相学习,欢迎指正。 话不多说直接进入主题 首先创建一个数组 /** 获取系统的语言数组 */ NSArray *languageArray = [[NSUse
分类:
移动开发 时间:
2016-03-10 01:30:28
阅读次数:
340
// 向plist文件中存储数据NSString *home = NSHomeDirectory();NSString *docPath = [home stringByAppendingPathComponent:@"Document"]; NSArray *data = @[@"jack", @
分类:
移动开发 时间:
2016-03-09 01:21:33
阅读次数:
200