iphone-common-codes-ccteam源代码 CCUIImageView.m

//  
// CCUIImageView.m
// CCFC
//
// Created by xichen on 11-12-23.
// Copyright 2011 ccteam. All rights reserved.
//


#import "CCUIImageView.h"
#import <CoreGraphics/CoreGraphics.h>
#import <QuartzCore/QuartzCore.h>


@implementation UIImageView(cc)


- (void)rotate:(float)angle
{
CGAffineTransform transform = CGAffineTransformMakeRotation(angle);
self.transform = transform;
}


//
- (void)setRotatePoint:(CGPoint)point
{
self.layer.anchorPoint = point;
}


@end

 

可能有更新:

googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIImageView.m
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUIImageView.m

 

你可能感兴趣的:(imageview)