自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (7)
  • 收藏
  • 关注

原创 UICollectionView-使用Flow Layout

Using the Flow Layout你可以在collection view中使用UICollectionViewFlowLayout类来组织item。Flow layout实现了一个基于线的布局,就是说布局对象在一条线性路径尽可能多的放置cell。当布局对象到达了当前行的末尾是,会另起一行。 配置flow layout的步骤: 创建一个flow layout对象,并把它指派给collecti

2015-07-13 21:23:40 4492

原创 NSLog输出

具体请参考: NSLog the method name with objective-C in iPhone How to print out the method name and line number and conditionally disable NSLog? How can I add context information - such as the current method

2015-07-10 17:00:44 825

转载 What does it mean to write `static void * ptr = &ptr` in objective-c?

What does it mean to write static void * ptr = &ptr in objective-c?问题:i am reading apple’s recently (dec 5, 2013) updated sample code for camera control using av foundation (here is the link). and i co

2015-07-10 16:33:55 705

原创 UIViewController转场动画

UIViewControllerAnimatedTransitioning在UINavigationController中如何使用UIViewControllerAnimatedTransitioning? 参考:How to use UIViewControllerAnimatedTransitioning with UINavigationController?1.动画的FromViewCon

2015-07-09 14:14:11 4860 2

原创 UINavigationController

UINavigationController处理屏幕旋转A simple UINavigationController subclass to handle iOS 6’s orientation changes better#import <UIKit/UIKit.h>@interface CJProperRotationNavigationController : UINavigationCon

2015-07-08 21:58:23 90

转载 UITableViewCell动态计算高度

转载自动态计算UITableViewCell高度详解不知道大家有没有发现,在iOS APP开发过程中,UITableView是我们显示内容常见的控件,本人觉得它是UIKit中最复杂的一个控件。今天要向大家介绍的就是如何动态计算UITableViewCell高度的一经验与技巧,在此做一些总结方便朋友们查阅。为了不让讲解空洞抽象,我还是用代码实例的方式进行讲解,这样更容易接收与学习。本文将介绍四种情况下

2015-07-07 21:38:04 2705

原创 UI效果

模糊效果 Adding Blur Effects on iOS 主要使用的方法有: 截屏- (UIImage *)takeSnapshotOfView:(UIView *)view { CGFloat reductionFactor = 1; UIGraphicsBeginImageContext(CGSizeMake(view.frame.size.width/reducti

2015-07-01 17:01:21 690

iOS Drawing Practical UIKit Solutions

Apple lavished iOS with a rich and evolving library of resolution-independent 2D drawing utilities. Its APIs include powerful features such as transparency, path-based drawing, anti-aliasing, and more. Harness these low-level, lightweight drawing routines in your apps to build images, to create PDFs, to display views, and to print.

2016-03-06

iOS Programming- The Big Nerd Ranch Guide 第4版

iOS Programming- The Big Nerd Ranch Guide 4ed,iOS开发教程,第4版

2015-06-01

NSOperation例子

一个NSOpration的例子,转载自raywenderlich

2015-04-01

AVCaptureSession

AVCaptureSession可以用来自定义照相机,这两个demo,也是在网上找的,可以作为参考

2014-10-11

iOS模糊效果Demo

ios 中 实现模糊效果,主要是扩展了image,有两个例子,可以参考

2014-07-02

SDWebImage

SDWebImage 第三方库,很好用的图片缓存与下载

2014-06-26

TKAlertCenter

效果很不错,由小到大显示,一两秒钟后由大到小消失

2014-06-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除