上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: NSDate *currentDate = [NSDate date];NSCalendar* calendar = [NSCalendar currentCalendar];NSDateComponents* components = [calendar components:NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit fromDate:currentDate]; // Get necessary date components[components month] //gives you month[components 阅读全文
posted @ 2014-01-15 14:30 有妄想症的猫zz 阅读(3103) 评论(0) 推荐(1) 编辑
摘要: 1.将 xib 文件名手动更改为 xxx~iphone.xib 和 xxx~ipad.xib2.初始化时使用 [[xxx alloc] init] 即可,系统会自动判断系统类型并加载对应的 xib 文件RFSendFeedbackViewController *viewController = [[RFSendFeedbackViewController alloc] init];RFNavigationController *navController = [[RFNavigationController alloc] initWithRootViewController:viewContr 阅读全文
posted @ 2014-01-15 09:35 有妄想症的猫zz 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/LoadingResources/Introduction/Introduction.html#//apple_ref/doc/uid/10000051i-CH1-SW1 阅读全文
posted @ 2014-01-15 09:23 有妄想症的猫zz 阅读(196) 评论(0) 推荐(0) 编辑
摘要: http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/ 阅读全文
posted @ 2014-01-14 20:16 有妄想症的猫zz 阅读(203) 评论(0) 推荐(0) 编辑
摘要: from:stackoverflowThe view'swindow propertyis non-nil if a view is currently visible, so check the main view in the view controller:[EDIT]Invoking theviewmethod causes the view to load (if it is not loaded) which is unnecessary and may be undesirable. It would be better to check first to see if 阅读全文
posted @ 2014-01-14 20:11 有妄想症的猫zz 阅读(862) 评论(0) 推荐(0) 编辑
摘要: UIGraphicsBeginImageContextWithOptions(newSize, NO, 0.0); [image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)]; UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return newImage; 阅读全文
posted @ 2014-01-14 20:07 有妄想症的猫zz 阅读(1368) 评论(0) 推荐(0) 编辑
摘要: - (void)setTabBarHidden:(BOOL)hidden{ UIView *tab = self.tabBarController.view; if ([tab.subviews count] < 2) { return; } UIView *view; if ([[tab.subviews objectAtIndex:0] isKindOfClass:[UITabBar class]]) { view = [tab.subviews objectAtIndex:1]; } else { ... 阅读全文
posted @ 2014-01-13 17:12 有妄想症的猫zz 阅读(10310) 评论(0) 推荐(0) 编辑
摘要: http://blog.bubbly.net/2013/09/11/slick-tricks-for-ios-blur-effect/Full sample sources available athttps://github.com/kronik/DKLiveBlur 阅读全文
posted @ 2014-01-11 11:08 有妄想症的猫zz 阅读(275) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/a/8874812 阅读全文
posted @ 2014-01-09 13:56 有妄想症的猫zz 阅读(163) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/a/5379013 阅读全文
posted @ 2014-01-08 18:35 有妄想症的猫zz 阅读(268) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页