01 2014 档案

摘要:addressBookHelper.h#import enum { ABHelperCanNotConncetToAddressBook, ABHelperExistSpecificContact, ABHelperNotExistSpecificContact};typedef NSUInteger ABHelperCheckExistResultType;@interface addressBookHelper : NSObject// 添加联系人// name -> 联系人姓名// phoneNum -> 电话号码// label -> 电话号码的标... 阅读全文
posted @ 2014-01-24 16:19 菜鸟程序猿 阅读(1743) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2014-01-20 10:29 菜鸟程序猿 阅读(146) 评论(0) 推荐(0)
摘要:[[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 阅读全文
posted @ 2014-01-15 19:55 菜鸟程序猿 阅读(541) 评论(0) 推荐(0)
摘要:[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:2] animated:YES];或for (UIViewController *controller in self.navigationController.viewControllers) { if ([controller isKindOfClass:[你要跳转到的Controller class]]) { [self.navigationController ... 阅读全文
posted @ 2014-01-15 19:36 菜鸟程序猿 阅读(408) 评论(0) 推荐(0)
摘要:// 展开动画- (void)beginAnimations{ CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:0.6];//动画时间长度,单位秒,浮点数 myView.frame = CGRectMake(0, 0, 320, 110); ... 阅读全文
posted @ 2014-01-13 19:55 菜鸟程序猿 阅读(1340) 评论(0) 推荐(0)
摘要:+ (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* 阅读全文
posted @ 2014-01-11 15:19 菜鸟程序猿 阅读(469) 评论(0) 推荐(0)
摘要:- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;{ if ([string isEqualToString:@"n"]) { return YES; } NSString * toBeString = [textField.text stringByReplacingCharactersInRange:range withString:string]; //... 阅读全文
posted @ 2014-01-09 16:14 菜鸟程序猿 阅读(572) 评论(0) 推荐(0)