码迷,mamicode.com
首页 >  
搜索关键字:nsarray    ( 1675个结果
封装分页功能
#import <UIKit/UIKit.h> @interface LZJPageView : UIView /** 图片名数据 */ @property (nonatomic, strong) NSArray *imageNames; + (instancetype)pageView; @end ...
分类:其他好文   时间:2016-05-02 22:59:11    阅读次数:123
qq联系人 左滑删除功能
// 局部刷新 NSArray *indexPaths = @[ [NSIndexPath indexPathForRow:0 inSection:0], [NSIndexPath indexPathForRow:1 inSection:0] ]; [self.tableView reloadRow ...
分类:其他好文   时间:2016-05-01 21:51:22    阅读次数:248
iOS 之 UISegmentedControl 使用详解
NSArray *segmentedArray = @[@"1",@"2",@"3",@"4"];       //初始化UISegmentedControl       UISegmentedControl *segmentedControl = [[UISegmentedControlalloc]initWithItems:segmentedArray];      ...
分类:移动开发   时间:2016-04-29 15:34:15    阅读次数:284
字符串截图类型题
//第1题 请判断images中存储的图片格式(例如,第X个为png图片) NSArray *images = @[@"A4E6E10BC0752623.png",@"2DE2C314665048CC.jpg",@"068E12268478787.gif",@"30A030B7C6.jpg"]; f ...
分类:其他好文   时间:2016-04-28 17:06:15    阅读次数:199
0427 数据库 是否存在文件名
//Documents: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); //username md5 const char *cStr = [userNa ...
分类:数据库   时间:2016-04-27 18:40:03    阅读次数:286
iOS学习:iOS代码规范
作者感言 阅读前言 iOS代码规范 Import规范 Define规范 Paragma Mark 规范 Interface规范 implementation规范 实例规范 NSDictionary规范 NSArray规范 函数规范 If-Else规范 For-In For 规范 Block规范 运算符规范 命名规范 实例命名规范 Property命名规范 Interface-class命名规范 B...
分类:移动开发   时间:2016-04-27 14:18:36    阅读次数:260
0427 容联emjo 表情转焕
self.emojiMap = [NSArray arrayWithObjects: [NSArray arrayWithObjects:@"\u2196", @"\uE237", nil], [NSArray arrayWithObjects:@"\u2197", @"\uE236", nil], ...
分类:其他好文   时间:2016-04-27 12:45:46    阅读次数:117
NSJSONSerialization
简介: NSJSONSerialization 可以将 JSON 转换为 OC 对象或将 OC 对象转为 JSON 数据。 可以被转为 JSON 的对象具有以下属性: 1)对象为 NSArray 或 NSDictionary; 2)所有对象都是 NSString, NSNumber, NSArray ...
分类:Web程序   时间:2016-04-26 00:25:04    阅读次数:180
遍历NSArray, NSDictionary, NSSet的方法总结
<!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> 1,for循环读取 <!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> 2, NSEnumerator类来循环 ...
分类:其他好文   时间:2016-04-25 19:17:37    阅读次数:213
strong和copy的区别
strong和copy的区别 问题描述 在定义一个类的property时候,为property选择strong还是copy特别注意和研究明白的,如果property是NSString或者NSArray及其子类的时候,最好选择使用copy属性修饰。为什么呢?这是为了防止赋值给它的是可变的数据,如果可变 ...
分类:其他好文   时间:2016-04-22 06:45:26    阅读次数:152
1675条   上一页 1 ... 37 38 39 40 41 ... 168 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!