#import <UIKit/UIKit.h> @interface LZJPageView : UIView /** 图片名数据 */ @property (nonatomic, strong) NSArray *imageNames; + (instancetype)pageView; @end ...
分类:
其他好文 时间:
2016-05-02 22:59:11
阅读次数:
123
// 局部刷新 NSArray *indexPaths = @[ [NSIndexPath indexPathForRow:0 inSection:0], [NSIndexPath indexPathForRow:1 inSection:0] ]; [self.tableView reloadRow ...
分类:
其他好文 时间:
2016-05-01 21:51:22
阅读次数:
248
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
//Documents: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); //username md5 const char *cStr = [userNa ...
分类:
数据库 时间:
2016-04-27 18:40:03
阅读次数:
286
作者感言
阅读前言
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
self.emojiMap = [NSArray arrayWithObjects: [NSArray arrayWithObjects:@"\u2196", @"\uE237", nil], [NSArray arrayWithObjects:@"\u2197", @"\uE236", nil], ...
分类:
其他好文 时间:
2016-04-27 12:45:46
阅读次数:
117
简介: NSJSONSerialization 可以将 JSON 转换为 OC 对象或将 OC 对象转为 JSON 数据。 可以被转为 JSON 的对象具有以下属性: 1)对象为 NSArray 或 NSDictionary; 2)所有对象都是 NSString, NSNumber, NSArray ...
分类:
Web程序 时间:
2016-04-26 00:25:04
阅读次数:
180
<!--?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的区别 问题描述 在定义一个类的property时候,为property选择strong还是copy特别注意和研究明白的,如果property是NSString或者NSArray及其子类的时候,最好选择使用copy属性修饰。为什么呢?这是为了防止赋值给它的是可变的数据,如果可变 ...
分类:
其他好文 时间:
2016-04-22 06:45:26
阅读次数:
152