- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 iOS 友盟分享
1.下载友盟分享 iOSsdk :http://dev.umeng.com/social/android/sdk-download 2.z
2014-04-29 14:11:12 1494
原创 利用颜色值来生成UIImage
只通过一个方法就可以完成此功能,直接上代码: -(UIImage*) imageWithColor:(UIColor*)color { CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBeginImageContext(rect.size); CGContextRef con
2014-03-20 09:25:36 953
原创 UINavigationController自定义,push和pop动画
我自己写的一个自定义UINavigationController,可以很方便地定制UINavigationController的navigationBar背景样式,比较炫的push和pop效果,不多说,上代码。 重写-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated方法,以下
2014-03-14 17:23:43 1211
原创 几个热门app的动画
+(CABasicAnimation *)opacityForever_Animation:(float)time //永久闪烁的动画 { CABasicAnimation *animation=[CABasicAnimation animationWithKeyPath:@"opacity"]; animation.fr
2014-03-14 14:59:16 467
原创 ios 抓图实现
//获得屏幕图像 - (UIImage *)imageFromView: (UIView *) theView { UIGraphicsBeginImageContext(theView.frame.size); CGContextRef context = UIGraphicsGetCurrentContext();
2014-03-14 14:36:38 746
转载 CGContext基本使用
CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文 CGContextMoveToPoint 开始画线 CGContextAddLineToPoint 画直线 CGContextAddEllipseInRect 画一椭圆 CGContextSetLineCap 设置线条终点形状 CG
2014-03-13 10:48:36 501
原创 ios 项目开发目录解析
目录结构 AppDelegate Models Macro General Helpers Vendors Sections Resources 一个合理的目录结构首先应该是清晰的,让人一眼看上去就能大概了解目录的职责,且容易应对新的变化。 AppDelegate 这个目录下放的是AppDelegate.h(.m
2014-02-26 17:01:59 467
转载 iOS开发小知识
1、如果在程序中想对某张图片进行处理的话(得到某张图片的一部分)可一用以下代码: UIImage *image = [UIImage imageNamed:filename]; CGImageRef imageRef = image.CGImage; CGRect rect = CGRectMake(origin.x, origin.y ,size.width,
2014-02-26 16:31:41 483
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人