摘要: Advantages:Makes setFrame ofUIPickerViewbehave like it shouldNo transform code within yourUIViewControllerWorks withinviewWillLayoutSubviewsto rescale/position theUIPickerViewWorks on the iPad withoutUIPopoverThe superclass always receives a valid heightWorks with iOS 5Disadvantages:Requires you to 阅读全文
posted @ 2013-06-20 19:02 cocoajin 阅读(3241) 评论(0) 推荐(0) 编辑
摘要: 代码方法://日期阳历转换为农历;- (NSString *)convertDateToNongLi:(NSString *)aStrDate{ NSDate *dateTemp = nil; NSDateFormatter *dateFormater = [[NSDateFormatter alloc]init]; [dateFormater setDateFormat:@"yyyy-MM-dd"]; dateTemp = [dateFormater dateFromString:aStrDate]; NSCalendar* calendar = [[N... 阅读全文
posted @ 2013-06-20 18:42 cocoajin 阅读(2039) 评论(0) 推荐(0) 编辑
摘要: 一: // UIButton *editSome; 为全局变量,已开启ARC; editSome = [UIButton buttonWithType:UIButtonTypeCustom]; editSome.frame = kCCR(0, 0, 45, 25); [editSome setTitle:@"编辑" forState:UIControlStateNormal]; [editSome setTitleColor:[UIColor whiteColor] forState:UIControlStateNor... 阅读全文
posted @ 2013-06-20 12:00 cocoajin 阅读(909) 评论(0) 推荐(0) 编辑
摘要: 一:引入包和头文件; 需要在frameworks中添加QuartzCore.framework 在接口程序中加上头文件 #import <QuartzCore/QuartzCore.h>二:使用 CATransition *myAnimation = [CATransition animation]; myAnimation.duration = 0.8f; myAnimation.type = kCATransitionPush; myAnimation.subtype = kCATransitionFromBottom; [self.navigat... 阅读全文
posted @ 2013-06-20 10:35 cocoajin 阅读(470) 评论(0) 推荐(0) 编辑