上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: iOS9之后alertview不让用啦,用UIAlertController吧UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"警告" message:@"xxxxxxx" preferredStyle:... 阅读全文
posted @ 2015-10-10 10:51 tongyuling 阅读(248) 评论(0) 推荐(0) 编辑
摘要: CGSize size = [xxx sizeWithAttributes:@{NSFontAttributeName: [UIFont systemFontOfSize:14.0f]}];CGSize adjustedSize = CGSizeMake(ceilf(size.width), cei... 阅读全文
posted @ 2015-09-24 11:36 tongyuling 阅读(191) 评论(0) 推荐(0) 编辑
摘要: -(NSMutableDictionary *)deleteNull{ if (self) { for (NSString * key in self) { if (self[key]==nil || [self[key] isEqual:[NSNull null]]) { ... 阅读全文
posted @ 2015-09-24 10:14 tongyuling 阅读(244) 评论(0) 推荐(0) 编辑
摘要: static int ScreenshotIndex=0; //判断是否是retina屏 if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]){ // 开启图像上下文 UIGraphicsBeginIma... 阅读全文
posted @ 2015-08-26 14:32 tongyuling 阅读(287) 评论(0) 推荐(0) 编辑
摘要: #import "GLProgram.h" // Base classes#import "GPUImageOpenGLESContext.h"#import "GPUImageOutput.h"#import "GPUImageView.h"#import "GPUImageVideoCame... 阅读全文
posted @ 2015-08-26 10:32 tongyuling 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 刷新UITableView方法:[self.tableView reloadData];reloadData是刷新整个UITableView,有时候,我们可能需要局部刷新。比如:只刷新一个cell、只刷新一个section等等。这个时候在调用reloadData方法,虽然用户看不出来,但是有些浪费资... 阅读全文
posted @ 2015-08-19 17:54 tongyuling 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 1.去掉导航栏边界的黑线:in viewDidload:[self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];self... 阅读全文
posted @ 2015-08-03 16:37 tongyuling 阅读(769) 评论(0) 推荐(0) 编辑
摘要: //翻页效果动画 左边 [UIView beginAnimations:@"animation" context:nil]; [UIView setAnimationDuration:1.0f]; [UIView setAnimationTransition:UIViewAnimationTr... 阅读全文
posted @ 2015-07-21 17:39 tongyuling 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 一、UIView动画:UIView可以产生动画效果的变化包括:1.大小变化:改变视图框架(frame)和边界。2.拉伸变化:改变视图内容的延展区域。3.改变透明度:改变视图的alpha值。4.改变状态:隐藏或显示状态。5.改变视图层次顺序:视图哪个前哪个后。6.旋转:即任何应用到视图上的仿射变换(t... 阅读全文
posted @ 2015-07-21 16:41 tongyuling 阅读(887) 评论(0) 推荐(0) 编辑
摘要: 1.新建2个view继承自UICollectionReusableView2.view里实现你想展现的控件3.viewdidload里实现[self.collectionView registerClass:[HeadView class] forSupplementaryViewOfKind:UI... 阅读全文
posted @ 2015-07-21 15:07 tongyuling 阅读(2477) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页