摘要:
代码方法://日期阳历转换为农历;- (NSString *)convertDateToNongLi:(NSString *)aStrDate{ NSDate *dateTemp = nil; NSDateFormatter *dateFormater = [[NSDateFormatter alloc]init]; [dateFormater setDateFormat:@"yyyy-MM-dd"]; dateTemp = [dateFormater dateFromString:aStrDate]; NSCalendar* calendar = [[N... 阅读全文
摘要:
一: // UIButton *editSome; 为全局变量,已开启ARC; editSome = [UIButton buttonWithType:UIButtonTypeCustom]; editSome.frame = kCCR(0, 0, 45, 25); [editSome setTitle:@"编辑" forState:UIControlStateNormal]; [editSome setTitleColor:[UIColor whiteColor] forState:UIControlStateNor... 阅读全文
摘要:
一:引入包和头文件; 需要在frameworks中添加QuartzCore.framework 在接口程序中加上头文件 #import <QuartzCore/QuartzCore.h>二:使用 CATransition *myAnimation = [CATransition animation]; myAnimation.duration = 0.8f; myAnimation.type = kCATransitionPush; myAnimation.subtype = kCATransitionFromBottom; [self.navigat... 阅读全文