码迷,mamicode.com
首页 >  
搜索关键字:uitableviewcontroller    ( 196个结果
IOS 练习 BLOCK 调用
//FIRST typedef?void(^TellPicBlock)(NSString?*albumPic)?;//typedef定义BLOCK @interface?PersonProfileViewController?:?UITableViewController? @property?(nonatomic,copy)?TellPicBlock?TBloc...
分类:移动开发   时间:2015-06-02 23:33:11    阅读次数:352
[iOS]UITableViewController完成收回键盘操作
UITableViewController 本身能够实现键盘适配(cell中控件焦点会移动到键盘上方 在做键盘收回的时候思考过如下方案 1、tableview添加点击事件 结果:点击事件和tableview的didselect 冲突,导致didselect失效 2、scrollview代理滚动收回键盘 结果:目的可以达到,但是当点击textfield的时候,此时键盘会出现之后直接收回。原...
分类:移动开发   时间:2015-06-02 18:06:35    阅读次数:125
UIKit 框架之UISearchBar、UITableViewController
//// tableViewController.m// tableVC//// Created by City--Online on 15/6/1.// Copyright (c) 2015年 CYW. All rights reserved.//#import "tableViewCon...
分类:其他好文   时间:2015-06-01 16:30:06    阅读次数:200
IOS Table中Cell的重用reuse机制分析
原文:http://blog.csdn.net/omegayy/article/details/7356823创建UITableViewController子类的实例后,IDE生成的代码中有如下段落:- (UITableViewCell *)tableView:(UITableView *)tabl...
分类:移动开发   时间:2015-06-01 09:35:33    阅读次数:144
UITableView学习笔记
要让 UITableViewController 实现 UITableViewDataSource 协议,需要实现以下方法:1. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;指定section数所谓的sectio...
分类:其他好文   时间:2015-05-31 10:40:55    阅读次数:94
为MVC瘦身——iOS的MVVM架构与ReactiveCocoa框架
MVC = Massive View Controller ?有笑话称MVC为重量级的试图控制器。仔细一想,确实存在这个问题。以UITableViewController和UITableView举个例子。 一般情况下,我们没有必要创建一个自定义的tableview继承自UITableView。这意味着View的模块几乎为空白。(在相当多的时候,view也仅是一个xib文件或者一堆代码用来描述控件外...
分类:移动开发   时间:2015-05-27 10:17:11    阅读次数:240
iOS开发——OC和swift创建系统自带的刷新界面
使用OC和swift创建系统自带的刷新界面一:swift刷新界面代码:import UIKitclass ViewController: UITableViewController { // 用于显示的数据源 var _dataSource:[String] = [] // 加载更多 状态 风火轮....
分类:移动开发   时间:2015-05-27 09:53:56    阅读次数:2834
iOS Development: Proper Use of initWithNibName:bundle: Affects UITableViewController
Address:http://www.outofcore.com/2011/07/ios-development-proper-use-of-initwithnibnamebundle-affects-uitableviewcontroller/I think this post will be u...
分类:移动开发   时间:2015-05-26 20:59:47    阅读次数:138
UIRefreshControl系统下拉刷新
1.目前只对UITableviewController有用;2.只能下拉刷新,不能上拉刷新;3.init或者viewdidload中创建UIRefreshControl,设置文字,颜色等信息;4.系统自动管理UIRefreshControl,自动添加到tableview视图中;5.给UIRefres...
分类:其他好文   时间:2015-05-23 18:18:11    阅读次数:135
UICollectionView详解一:基本介绍
UICollectionView 和 UICollectionViewController 类是iOS6 新引进的API,用于展示集合视图,布局更加灵活,可实现多列布局,用法类似于UITableView 和 UITableViewController 类。 我们来按顺序看下面四幅图。可以看出,UICollectionViewCell与UITableViewCell的结构很相似。 ...
分类:其他好文   时间:2015-05-19 14:49:09    阅读次数:117
196条   上一页 1 ... 11 12 13 14 15 ... 20 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!