2016年8月17日

枚举/遍历 一个数组NSArray/NSDictionary

摘要: 一,当枚举一个数组的时候: 1.使用 for (id object in array) 如果是顺序枚举 2.使用 for (id object in [arrary reverseObjectEnumerator]) 如果是倒叙枚举 3.使用 for (NSInteger i = 0; i < co 阅读全文

posted @ 2016-08-17 14:31 开花结果乐园 阅读(165) 评论(0) 推荐(0) 编辑

cell选中后进入重用池出来选中状态消失

摘要: #import "XXViewController.h" @interface XXViewController ()<UITableViewDelegate,UITableViewDataSource> { UITableView *_table; } //定义一个数组来记录cell的是否选中的状 阅读全文

posted @ 2016-08-17 13:26 开花结果乐园 阅读(1056) 评论(0) 推荐(0) 编辑

scrollview做定时来回滚动时,总出现错位的情况。

摘要: 方法1:self.edgesForExtendedLayout = UIRectEdgeNone; 方法2: self.automaticallyAdjustsScrollViewInsets = YES; 阅读全文

posted @ 2016-08-17 11:43 开花结果乐园 阅读(356) 评论(0) 推荐(0) 编辑

TextField 的文字间距

摘要: #import "XZCTextField.h"@implementation XZCTextField////控制清除按钮的位置//-(CGRect)clearButtonRectForBounds:(CGRect)bounds//{// return CGRectMake(bounds.orig 阅读全文

posted @ 2016-08-17 10:58 开花结果乐园 阅读(726) 评论(0) 推荐(0) 编辑

3DTouch 开发教程全解

摘要: 本文主要讲解3DTouch各种场景下的开发方法,开发主屏幕应用icon上的快捷选项标签(Home Screen Quick Actions),静态设置UIApplicationShortcutItem,动态添加、修改UIApplicationShortcutItem,peek和pop的实现。 一、3 阅读全文

posted @ 2016-08-17 10:50 开花结果乐园 阅读(772) 评论(0) 推荐(0) 编辑

导航