- 博客(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
2016-03-06
iOS Programming- The Big Nerd Ranch Guide 第4版
2015-06-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人