摘要: 用于uidate,picker。。+(NSDate*) convertDateFromString:(NSString*)uiDate{ NSDateFormatter *formatter = [[NSDateFormatter alloc] init] ; [formatter setDateFormat:@"yyyy年MM月dd日"]; NSDate *date=[formatter dateFromString:uiDate]; return date;}输入的日期字符串形如:@"1992-05-21 13:08:08"- (NSDate *)d 阅读全文
posted @ 2012-07-10 17:59 暖流 阅读(60585) 评论(2) 推荐(0) 编辑
摘要: //初始化一个buttonUIButton *defaultIcon =[[UIButton alloc] initWithFrame:CGRectMake(230, 10, 23, 23)];//为其添加tag,绑定响应事件到相应的函数[defaultIcon addTarget:defaultBabyIconTag action:@selector(clickChangeBaby) forControlEvents:UIControlEventTouchUpInside];[cell addSubview:defaultIcon]; 阅读全文
posted @ 2012-07-10 17:57 暖流 阅读(391) 评论(0) 推荐(0) 编辑