- 博客(12)
- 资源 (1)
- 收藏
- 关注
原创 一键打电话
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"tel:139*******"]];
2015-09-29 14:26:34 556
原创 ios时间时区处理
- (NSDate *)getNowDateFromatAnDate:(NSDate *)anyDate { //设置源日期时区 NSTimeZone* sourceTimeZone = [NSTimeZone timeZoneWithAbbreviation:@"UTC"];//或GMT //设置转换后的目标日期时区 NSTimeZo
2015-09-24 17:18:59 479
原创 判断IOS 数字是否合法,邮箱是否合法
//判断是否数字 - (BOOL)isPureNumandCharacters:(NSString *)string { string = [string stringByTrimmingCharactersInSet:[NSCharacterSet decimalDigitCharacterSet]]; if(string.length > 0) {
2015-09-22 15:25:02 678
原创 自定义UITableViewCell重用cell
BankTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"chooseCell"]; if (cell == nil) { NSArray *array = [[NSBundle mainBundle]loadNibNamed:@"BankTableView
2015-09-21 09:10:44 231
原创 Xcode7 网络请求报错:The resource could not be loaded because the App Transport Security policy requir
升级Xcode 7.0发现网络访问失败。 输出错误信息 The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. Google后查证,iOS9引入了新特性App Transport Secur
2015-09-17 13:02:49 399
原创 ios字符串替换
NSString *id_no = [_id_no stringByReplacingCharactersInRange:NSMakeRange(2, 14) withString:@"**************"];
2015-09-14 11:11:20 338
原创 iOS xib跳转到stordboard
UIStoryboard *board = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; LoginViewController *loginVC = [board instantiateViewControllerWithIdentifier:@"navigationVC"]; [self pres
2015-09-08 14:47:46 349
原创 ios判断身份证,手机号,邮箱号
/*邮箱验证 MODIFIED BY HELENSONG*/ -(BOOL)isValidateEmail:(NSString *)email { NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate *emailTest = [NSPredicate pred
2015-09-08 11:04:10 328
原创 UISearchBar输入框颜色设置,文字颜色设置
UIView *searchTextField = [[[self.searchBar.subviews firstObject]subviews]lastObject]; searchTextField.backgroundColor = [UIColor colorWithHexString:@"#1c232c" withAlpha:1];
2015-09-07 09:04:36 1875
原创 UITableViewCell分割线从最左边开始和分割线颜色设置
self.tableView.separatorColor = [UIColor colorWithHexString:@"#1c232c" withAlpha:1]; self.tableView.separatorInset = UIEdgeInsetsZero;
2015-09-01 09:36:42 824
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人