01 2014 档案
摘要:addressBookHelper.h#import enum { ABHelperCanNotConncetToAddressBook, ABHelperExistSpecificContact, ABHelperNotExistSpecificContact};typedef NSUInteger ABHelperCheckExistResultType;@interface addressBookHelper : NSObject// 添加联系人// name -> 联系人姓名// phoneNum -> 电话号码// label -> 电话号码的标...
阅读全文
摘要:NSMutableString *groupName = [[NSMutableString alloc]init]; for (int i = 0; i< addedFriendArray.count; i++) { (i==0)?:[groupName appendString:@","]; NSString *name = [[addedFriendArray objectAtIndex:i] name]; [groupName appendString:name]; } NSLog(@"groupName is%@",gro...
阅读全文
摘要:[[NSNotificationCenter defaultCenter] postNotificationName:@"postCity" object:pro];[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(cityCallBack:) name:@"postCity" object:nil];- (void)cityCallBack:(NSNotification *)notification{ if (nil != notification.ob
阅读全文
摘要:[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:2] animated:YES];或for (UIViewController *controller in self.navigationController.viewControllers) { if ([controller isKindOfClass:[你要跳转到的Controller class]]) { [self.navigationController ...
阅读全文
摘要:// 展开动画- (void)beginAnimations{ CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:0.6];//动画时间长度,单位秒,浮点数 myView.frame = CGRectMake(0, 0, 320, 110); ...
阅读全文
摘要:+ (BOOL) judgeRange:(NSArray*)conditionArr Password:(NSString*)password{ NSRange range; BOOL result =NO; for(int i=0; i",@"?",@"/",@"、", nil]; NSString* result1 = [NSString stringWithFormat:@"%d",[self judgeRange:termArray1 Password:password]]; NSString*
阅读全文
摘要:- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;{ if ([string isEqualToString:@"n"]) { return YES; } NSString * toBeString = [textField.text stringByReplacingCharactersInRange:range withString:string]; //...
阅读全文

浙公网安备 33010602011771号