摘要:
NSString *str = @"A~B^C";NSArray *arr = [str componentsSeparatedByCharactersInSet: [NSCharacterSet characterSetWithCharactersInString:@"^~"]]; 阅读全文
摘要:
将string字符串转换为array数组NSArray *array = [Str componentsSeparatedByString:@","];将array数组转换为string字符串NSString *tempString = [mutableArray componentsJoinedB... 阅读全文
摘要:
NSString *text = [temptext stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; 阅读全文
摘要:
NSString *temptext = [messageTextField.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];//去除两端的空格NSString *inputStr = [te... 阅读全文
摘要:
我们在nsstring的分割,查找等操作中,经常会提供两种函数,参数类型分别为NSString 和NSCharacterset,有什么不同呢?NSString 是有序字符串NSCharacterset是无需字符集合,主要用来判断已知字符串是否包含制定字符集,而不可以用来保存字符串。 阅读全文
摘要:
实例化header和footer _header = [MJRefreshHeaderView header]; _header.scrollView = _tableView; 设置header和footer的滚动视图为table _footer = [MJRefreshFooterView fo... 阅读全文
摘要:
创建一个事件表格 UIActionSheet *as = [[UIActionSheet alloc]initWithTitle:nil delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitle... 阅读全文
摘要:
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"校验登录密码" message:@"" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil]; aler... 阅读全文
摘要:
SIAlertView是AlertView的替代产品 的效果比较多 。使用实例:SIAlertView *alertView = [[SIAlertView alloc] initWithTitle:@"" andMessage:@"选择实名认证的银行卡类型"]; [alertView addBut... 阅读全文
摘要:
ballLayer=[CALayer layer]; ballLayer.bounds = CGRectMake(0, 0, 138,113); ballLayer.position = CGPointMake(self.view.frame.size.width/2,self.view.frame... 阅读全文