UITableView(继承自UIScrollView)的常用属性:1、可以用连线的方式设置数据源和代理1 self.tableView.dataSource = self;2 self.tableView.delegate = self;2、设置高度1 @property (nonatomic) ...
分类:
其他好文 时间:
2015-01-03 23:47:57
阅读次数:
231
//// MJViewController.m// UITableView-编辑模式//// Created by mj on 13-4-11.// Copyright (c) 2013年 itcast. All rights reserved.//#import "MJViewContro...
分类:
移动开发 时间:
2015-01-02 23:40:43
阅读次数:
263
iOS之UISearchBar实时显示结果 UISearchBar 经常是配合UITableView 一起使用的,一般都将UITableView的tableHeaderView属性设置为UISearchBar.使用UISearchBar需要实现UISearchBarDelegate 中的三个方法。....
分类:
移动开发 时间:
2015-01-01 16:00:51
阅读次数:
185
UITableViewCell的创建方式 方式1 直接通过alloc://返回当前行显示的cell- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPa....
分类:
其他好文 时间:
2015-01-01 14:44:50
阅读次数:
344
要自定义tableview的分割线,需要手写代码往UItableviewCell 的contentView中添加视图,控制好添加视图的高度和宽度就可以实现。 效果图: 第一步:设置cell,设置的方式有xib,tableview动态原型方式,还有就是手写代码方式,在这使用动态原型,参考c...
分类:
其他好文 时间:
2015-01-01 14:44:08
阅读次数:
295
1.1 UITableView的基本方法和属性 选中的行号- (NSIndexPath *)indexPathForSelectedRow; // returns nil or index path re...
分类:
其他好文 时间:
2015-01-01 12:24:47
阅读次数:
221
-、建立 UITableViewDataTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)];[DataTable setDelegate:self];[DataTable setDataSource:self]...
分类:
其他好文 时间:
2015-01-01 11:16:58
阅读次数:
189
1.1 加载:UITableViewCell 的加载需要遵守UITableViewDataSource数据源协议中的三个方法:@protocol UITableViewDataSource@required- (NSInteger)tableView:(UITableView *)tableView...
分类:
其他好文 时间:
2015-01-01 01:23:03
阅读次数:
277
这是一个IOS智能聊天机器人的源码,采用了仿微信的风格设计,调用的是图灵机器人的API,能够实现智能聊天、讲故事、讲笑话、查天气、查公交等丰富的功能
[1].[代码] 仿微信界面: UITableView
跳至
[1]
[2]
[3]
[4]
[5]
[6]
?
1
2
3
4
5
6
7
8
9
//...
分类:
微信 时间:
2014-12-30 19:10:12
阅读次数:
477
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [tableView deselectRowAtIndexPath:indexPath animated...
分类:
其他好文 时间:
2014-12-29 19:58:54
阅读次数:
135