随笔分类 - ios-UITableView
摘要:_scroll.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag;_SearchTable.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag;
阅读全文
摘要:局部刷新//一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimatio
阅读全文
摘要:支持MJRefresh刷新可在header里面添加 滚动视图 footer里面添加按钮
阅读全文
摘要:VC cell里面点击按钮 效果图:
阅读全文
摘要:xib的 //不使用这种- (IBAction)button:(UIButton *)sender; //使用这种 @property (weak, nonatomic) IBOutlet UIButton *button; 在cell里面直接调用 [cell.button addTarget:se
阅读全文
摘要:// RootViewController.m #import "RootViewController.h"#import "NextViewController.h"@interface RootViewController (){ NSMutableArray * dataSource;//数据
阅读全文
摘要:利用NSMutableDictionary key值 来改变cell的状态 -(void)createUI{ table = [[UITableView alloc]initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size.
阅读全文
摘要:1、实现UITableView类似抽屉开关控制器的功能 2、使用NSUserDefaults实现cell中输入UIfield的保存功能 // RootViewController.h#import <UIKit/UIKit.h> @interface RootViewController : UIV
阅读全文
浙公网安备 33010602011771号