码迷,mamicode.com
首页 >  
搜索关键字:nsarray    ( 1675个结果
iOS NSDictionary 转Json 去掉换行去掉空格
//dic 转json 如果用系统自带的会出现空格。 + (NSString *)returnJSONStringWithDictionary:(NSDictionary *)dictionary{ //系统自带 // NSError * error; // NSData * jsonData = ... ...
分类:移动开发   时间:2017-09-14 18:34:33    阅读次数:794
cell中加上无限轮播的效果
直接上代码 首先是建立一个继承UIView的文件 @interface GFCarouselView : UIView ///数据源 @property (nonatomic,copy) NSArray *dataArray; .m文件 @implementation GFCarouselView ...
分类:其他好文   时间:2017-09-09 22:31:07    阅读次数:267
ios数组基本用法和排序
1.创建数组 2.数组的一些基本方法 3.遍历数组 4.数组排序 ...
分类:移动开发   时间:2017-09-09 09:41:38    阅读次数:285
* -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]’
错误描述: * -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]’ 错误分析: 这个问题,一般是因为 nsarray或nsdictiona ...
分类:其他好文   时间:2017-09-04 17:45:00    阅读次数:304
iOS 开发 property,strong,weak,retain,assign,copy,nomatic 的区别及使用
1:ARC环境下,strong代替retain.weak代替assign,xcode 4.2(ios sdk4.3和以下版本)和之前的版本使用的是retain和assign,是不支持ARC的。xcode 4.3(ios5和以上版本)之后就有了ARC,并且开始使用 strong与weak 2:weak ...
分类:移动开发   时间:2017-08-29 11:01:18    阅读次数:191
oc70--NSArray1
// // main.m // NSArray是不可变的,一旦初始化完毕,就不能添加和删除了。类似于NSString和NSMutilString。 #import #import "Person.h" int main(int argc, const char * argv[]) { NSArray... ...
分类:其他好文   时间:2017-08-27 17:15:00    阅读次数:270
oc73--NSArray使用
// // main.m // NSArray和NSString之间转换 #import int main(int argc, const char * argv[]) { NSArray *arr = @[@"lnj", @"lmj", @"jjj"]; // 需求: 用-将所有的姓名连接起来生成... ...
分类:其他好文   时间:2017-08-27 17:14:36    阅读次数:265
oc72--NSArray排序
// Person.h #import @interface Person : NSObject @property (nonatomic, assign) int age; @end // Person.m #import "Person.h" @implementation Person - (... ...
分类:编程语言   时间:2017-08-27 17:03:48    阅读次数:154
swift中Any,AnyObject,AnyClass的区别
这几个概念让人很迷惑,看了很多帖子,终于搞明白了,简单总结: Any 和 AnyObject 是 Swift 中两个妥协的产物。什么意思呢,oc中有个id关键字,表示任何对象,oc和swift混编的时候拿什么对应id呢?就发明出来了AnyObject。但是!oc中的NSString,NSArray等 ...
分类:编程语言   时间:2017-08-25 15:55:47    阅读次数:258
makeObjectsPerformSelector 方法的用法
nsarray 类定义的方法 1. makeObjectsPerformSelector:@select(aMethod) 简介:让数组中的每个元素 都调用 aMethod 2. makeObjectsPerformSelector:@select(aMethod) withObject:oneOb ...
分类:其他好文   时间:2017-08-22 10:45:19    阅读次数:117
1675条   上一页 1 ... 7 8 9 10 11 ... 168 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!