亻五毛

导航

2014年9月4日 #

ios-邮箱正则表达式判断

摘要: - (void)loadData { NSMutableArray *array = [NSMutableArray arrayWithCapacity:10]; if ([self.title isEqualToString:@"名字"]) { self.nameStr = inputT... 阅读全文

posted @ 2014-09-04 15:08 五尐毛 阅读(285) 评论(0) 推荐(0) 编辑

2014年9月3日 #

ios-密码加密

摘要: 加密文件可到网上搜索MyMD5后下载MyMD5.h文件//// MyMD5.h// GoodLectures//// Created by yangshangqing on 11-10-11.// Copyright 2011年 __MyCompanyName__. All rights r... 阅读全文

posted @ 2014-09-03 14:33 五尐毛 阅读(283) 评论(0) 推荐(0) 编辑

2014年9月2日 #

ios-计算时间方法

摘要: -(NSString*)countPublishTime:(NSString*)sDate{ NSDate*dtNow = [NSDatedate]; NSDateFormatter*dateFormatter = [[NSDateFormatteralloc]init]; [dateFormat... 阅读全文

posted @ 2014-09-02 18:40 五尐毛 阅读(262) 评论(0) 推荐(0) 编辑

2014年9月1日 #

ios-根据单元格里的控件tag值,在方法外获得对应的section与row的值

摘要: 在cell的代理方法里:cellForRowAtIndexPathbtn.tag = indexPath.section *100 + indexPath.row;[cell.exitPersonBtn addTarget:self action:@selector(exitPersonBtnCli... 阅读全文

posted @ 2014-09-01 10:33 五尐毛 阅读(616) 评论(0) 推荐(0) 编辑

2014年8月29日 #

ios-UITableView无内容时,不显示多余的分隔线

摘要: 效果如上。只要补上以下方法://设置多于的分割线-(void)setExtraCellLineHidden: (UITableView *)tableView{ UIView *view = [UIView new]; view.backgroundColor = [UIColor clearC... 阅读全文

posted @ 2014-08-29 10:11 五尐毛 阅读(1270) 评论(0) 推荐(0) 编辑

2014年8月28日 #

ios-UITextView输入时,字数限制的倒数及对超出的字数进行截取并弹出提示框

摘要: 效果图如上,主要是右上角的Label显示框,创建完各控件后,可以在代理方法里贴上下面代码:-(void)textViewDidChange:(UITextView *)obj{ UITextView *textField = (UITextView *)obj; NSString *toBeSt... 阅读全文

posted @ 2014-08-28 10:10 五尐毛 阅读(959) 评论(0) 推荐(0) 编辑