代码改变世界

随笔分类 -  TableView

SWIFT UITableView的基本用法

2016-02-22 21:45 by 甘雨路, 2039 阅读, 收藏,
摘要: import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplicat 阅读全文

iOS UITableView点击按钮滚到顶部

2016-02-21 23:00 by 甘雨路, 3076 阅读, 收藏,
摘要: #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end #import "App 阅读全文

iOS tableViewCell侧滑改变收藏状态

2016-02-18 15:30 by 甘雨路, 554 阅读, 收藏,
摘要: /** * 图片素材 链接: http://pan.baidu.com/s/1mhi1sfQ 密码: w2wq */ #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @prope 阅读全文

iOS 重写UITableViewCell之动态获取label文字的宽度进行布局

2016-01-12 17:57 by 甘雨路, 638 阅读, 收藏,
摘要: #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "MovieHomeCon... 阅读全文

iOS 自定义UITableViewCell

2015-12-31 16:46 by 甘雨路, 161 阅读, 收藏,
摘要: #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "AViewController.h"@imp... 阅读全文

iOS UILabel根据文字获取高度及UITableCell动态获取高度(以截取快递信息为例)

2015-11-15 11:05 by 甘雨路, 488 阅读, 收藏,
摘要: #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewController.h"@... 阅读全文

IOS UITableView分组与索引分区实例

2015-08-25 21:58 by 甘雨路, 460 阅读, 收藏,
摘要: 1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (strong, nonatomic) UIWindow *window;6 7 8 @end 1 #import "AppDelegate.h" 2 #import "... 阅读全文

iOS UITableView制作类似QQ好友列表视图

2015-08-25 21:43 by 甘雨路, 639 阅读, 收藏,
摘要: 1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (strong, nonatomic) UIWindow *window;6 7 8 @end 1 #import "AppDelegate.h" 2 #i... 阅读全文

iOS 列表三级展开

2015-08-24 20:33 by 甘雨路, 1827 阅读, 收藏,
摘要: 效果图如下: 1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (strong, nonatomic) UIWindow *window;6 7 8 @end 1 #import "AppDelegate.h" ... 阅读全文

iOS 聊天界面

2015-08-20 16:38 by 甘雨路, 320 阅读, 收藏,
摘要: 1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (strong, nonatomic) UIWindow *window;6 7 8 @end 1 #import "AppDele... 阅读全文

UITableView(可滚动到顶部和底部)

2015-08-17 11:05 by 甘雨路, 754 阅读, 收藏,
摘要: #import "RootViewController.h"#define width [UIScreen mainScreen].bounds.size.width#define height [UIScreen mainScreen].bounds.size.height#define topH... 阅读全文