#defineradians(degrees)(degrees*M_PI/180)UIImage*rotate(UIImage*image){CGSizesize=image.size;;UIGraphicsBeginImageContext(size);CGContextRefcontext=UIGraphicsGetCurrentContext();//Ifthisiscommentedout,imageisreturnedasitis.CGContextRotateCTM(context,radians(90));[imagedrawInRect:CGRectMake(0,0,s
#defineradians(degrees)(degrees*M_PI/180)UIImage*rotate(UIImage*image){CGSizesize=image.size;;UIGraphicsBeginImageContext(size);CGContextRefcontext=UIGraphicsGetCurrentContext();//Ifthisiscommentedout,imageisreturnedasitis.CGContextRotateCTM(context,radians(90));[imagedrawInRect:CGRectMake(0,0,s