****动画组// 核心动画都是假象,不能改变layer的真实属性的值// 展示的位置和实际的位置不同。实际位置永远在最开始位置#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) ...
分类:
移动开发 时间:
2015-09-06 19:57:15
阅读次数:
138
*****HMViewController.m#import "HMViewController.h"#import "HMWheelView.h"@interface HMViewController ()@property (nonatomic, weak) HMWheelView *wheel...
分类:
移动开发 时间:
2015-09-06 19:56:03
阅读次数:
218
***翻页效果#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@property (nonatomic, ass...
分类:
移动开发 时间:
2015-09-06 19:48:22
阅读次数:
184
***#import "HMViewController.h"#define angle2radian(x) ((x) / 180.0 * M_PI)@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIImageV...
分类:
移动开发 时间:
2015-09-06 18:21:56
阅读次数:
175
*******#import "HMViewController.h"@interface HMViewController ()@property (nonatomic, weak) CALayer *layer;@end@implementation HMViewController- (voi...
分类:
移动开发 时间:
2015-09-06 18:20:37
阅读次数:
173
******隐式动画(手指拖拽Layer)#import "HMViewController.h"@interface HMViewController ()@property (nonatomic, weak) CALayer *layer;@end@implementation HMViewCo...
分类:
移动开发 时间:
2015-09-06 18:12:10
阅读次数:
162
*******#import "HMViewController.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UIView *redView;@end@implementation HMViewContro...
分类:
移动开发 时间:
2015-09-06 17:53:37
阅读次数:
191
转自:http://www.cnblogs.com/flyFreeZn/p/4264220.html本文来源于我个人的ARC学习笔记,旨在通过简明扼要的方式总结出iOS开发中ARC(Automatic Reference Counting,自动引用计数)内存管理技术的要点,所以不会涉及全部细节。这篇...
分类:
移动开发 时间:
2015-09-06 16:07:56
阅读次数:
204
Thinking about it: 看完这题的时候,确实没有啥思路,看了题解才明白的。这个最小值是通过二分法先确定下来的,然后才能分组。这种思维方式超出了我的意料,我还一直朝着DP的思路走。看来我还需要多磨练。Reference: 《算法竞赛入门经典(第2版)》Code: /** * AC ...
分类:
其他好文 时间:
2015-09-06 14:29:50
阅读次数:
150
Item 21: Don't try to return a reference when you must return an object
Item 20中提到,多数情况下传引用比传值更好。追求这一点是好的,但千万别返回空的引用或指针。 一个典型的场景如下:
class Rational{
int n, d;
public:
Raitonal(int numerator...
分类:
编程语言 时间:
2015-09-06 09:52:30
阅读次数:
236