
UI
_无事莫登旧人梦
这个作者很懒,什么都没留下…
展开
-
UITableView多选删除,类似mail中的多选删除效果
第一步,实现-(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editing转载 2013-10-10 17:10:28 · 618 阅读 · 0 评论 -
UITableView划动删除的实现
对于app应用来说,使用列表的形式展现数据非UITableView莫属.在熟练掌握了用UITableView展示数据以后,是不是也遇到了需要删除数据的需求?是不是觉得在一行数据上划动一下,然后出现一个删除按钮很酷?废话少说,直奔正题,就由笔者来向您展示一下这个功能的实现是多么容易. 先前的准备工作: 第一步,准备好数据源. #import @interface UITableCe转载 2013-10-10 16:35:06 · 673 阅读 · 0 评论 -
UITableView 删除小技巧
//滑动删除 -(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { NSUInteger row = [indexPath r转载 2013-09-29 17:18:49 · 534 阅读 · 0 评论 -
ios6新特性之下拉刷新UIRefreshControl
ios6官方提供了下拉刷新的功能,水滴状,下面是它的一些用法 1.用UITableViewController #import @interface RefreshViewController :UITableViewController @end - (void)viewDidLoad { [superviewDidLoad转载 2013-10-12 12:35:07 · 1006 阅读 · 0 评论 -
iOS开发-UIButton
//风格:type UIButton*button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 注: typedefNS_ENUM(NSInteger, UIButtonType) { UIButtonTypeCustom =0, //默认 UIButtonTyp原创 2014-07-29 11:04:39 · 540 阅读 · 0 评论 -
iOS开发-UIAlertView
继承UIAlertView 然后改写layoutSubviews方法- (void)layoutSubviews{ CGRect rect = self.bounds; rect.size.height = 300; self.bounds = rect; [self setBackgroundColor:[UIColor greenColor]];原创 2013-09-29 17:14:16 · 566 阅读 · 0 评论