随笔分类 -  ios-UITableView

摘要:_scroll.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag;_SearchTable.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag; 阅读全文
posted @ 2016-12-14 09:29 代码始我快乐 阅读(1108) 评论(0) 推荐(1)
摘要:局部刷新//一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimatio 阅读全文
posted @ 2016-07-23 11:44 代码始我快乐 阅读(386) 评论(0) 推荐(0)
摘要:支持MJRefresh刷新可在header里面添加 滚动视图 footer里面添加按钮 阅读全文
posted @ 2016-07-23 11:01 代码始我快乐 阅读(764) 评论(0) 推荐(0)
摘要:VC cell里面点击按钮 效果图: 阅读全文
posted @ 2016-07-12 11:22 代码始我快乐 阅读(300) 评论(0) 推荐(0)
摘要:xib的 //不使用这种- (IBAction)button:(UIButton *)sender; //使用这种 @property (weak, nonatomic) IBOutlet UIButton *button; 在cell里面直接调用 [cell.button addTarget:se 阅读全文
posted @ 2016-07-11 21:19 代码始我快乐 阅读(254) 评论(0) 推荐(0)
摘要:// RootViewController.m #import "RootViewController.h"#import "NextViewController.h"@interface RootViewController (){ NSMutableArray * dataSource;//数据 阅读全文
posted @ 2016-07-11 17:57 代码始我快乐 阅读(251) 评论(0) 推荐(0)
摘要:利用NSMutableDictionary key值 来改变cell的状态 -(void)createUI{ table = [[UITableView alloc]initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size. 阅读全文
posted @ 2016-07-11 17:39 代码始我快乐 阅读(316) 评论(0) 推荐(0)
摘要:1、实现UITableView类似抽屉开关控制器的功能 2、使用NSUserDefaults实现cell中输入UIfield的保存功能 // RootViewController.h#import <UIKit/UIKit.h> @interface RootViewController : UIV 阅读全文
posted @ 2016-07-11 15:29 代码始我快乐 阅读(305) 评论(0) 推荐(0)