Sportica   Sportica

12 2012 档案

摘要:[punishIDTXFagain setKeyboardType:UIKeyboardTypeNumberPad ]; //输入法只能为数字//其它的输入法UIKeyboardTypeDefault, // Default type for the current input method. UIKeyboardTypeASCIICapable, // Displays a keyboard which can enter ASCII characters, non-ASCII keyboards remain active UI... 阅读全文
posted @ 2012-12-29 13:35 qingjoin 阅读(299) 评论(0) 推荐(0) 编辑
摘要:12.判断邮箱格式是否正确的代码://利用正则表达式验证-(BOOL)isValidateEmail:(NSString *)email{NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES%@",emailRegex];return [emailTest evaluateWithObject:email];}13. 阅读全文
posted @ 2012-12-24 18:04 qingjoin 阅读(708) 评论(0) 推荐(0) 编辑
摘要://判断roadTitleLab.text 是否含有qingjoin if([roadTitleLab.text rangeOfString:@"qingjoin"].location !=NSNotFound)//_roaldSearchText { NSLog(@"yes"); } else { NSLog(@"no"); } 阅读全文
posted @ 2012-12-14 11:09 qingjoin 阅读(97994) 评论(0) 推荐(2) 编辑
摘要:NSString *msg; msg = [NSString stringWithFormat:@"%@",[[[DATA.specificSearchList objectAtIndex:indexPath.row]objectForKey:@"content"] stringByReplacingOccurrencesOfString:@"\\n" withString:@" \r\n" ]];label.numberOfLines = 0; //不要忘记设置这个label.text = msg; 阅读全文
posted @ 2012-12-04 17:30 qingjoin 阅读(14149) 评论(2) 推荐(1) 编辑

  Sportica
点击右上角即可分享
微信分享提示