该文被密码保护。 阅读全文
posted @ 2016-02-10 22:57 破水杯 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ios7中,UITableViewCell左侧会有默认15像素的空白。设置setSeparatorInset:UIEdgeInsetsZero 能将空白去掉。ios8中,setSeparatorInset:UIEdgeInsetsZero 的设置已经不起作用了。下面是解决办法,首先在viewDidL... 阅读全文
posted @ 2016-01-09 11:43 破水杯 阅读(194) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-12-22 22:24 破水杯 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 一、校验数字的表达式1 数字:^[0-9]*$2 n位的数字:^\d{n}$3 至少n位的数字:^\d{n,}$4 m-n位的数字:^\d{m,n}$5 零和非零开头的数字:^(0|[1-9][0-9]*)$6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})... 阅读全文
posted @ 2015-12-22 22:23 破水杯 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`. You can try adding it manually in `~/.cocoapods/repos` or v... 阅读全文
posted @ 2015-12-21 15:53 破水杯 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1 //点击搜索 收回键盘2 3 -(void)searchBarSearchButtonClicked:(UISearchBar *)searchBar{4 5 6 7 [_searchBar resignFirstResponder];//放弃第一响应者对象,关闭... 阅读全文
posted @ 2015-11-22 06:16 破水杯 阅读(314) 评论(0) 推荐(0) 编辑
摘要: - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{ UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRe... 阅读全文
posted @ 2015-11-21 11:35 破水杯 阅读(2162) 评论(0) 推荐(0) 编辑
摘要: 1 #import "ViewController.h" 2 3 @interface ViewController () 4 { 5 // 原始数据源 6 NSMutableArray *_arrayM; 7 // 搜素结果数据源 8 NSMutableArra... 阅读全文
posted @ 2015-11-21 10:34 破水杯 阅读(457) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import "CustomCollectionViewCell.h"@interface ViewController (){ NSMutableArray *_arrayM;}@end@implementation ViewControll... 阅读全文
posted @ 2015-11-21 09:43 破水杯 阅读(580) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // 1.瀑布流 ... 阅读全文
posted @ 2015-11-21 09:23 破水杯 阅读(151) 评论(0) 推荐(0) 编辑