2013-01-23 21 views
1

我想改变从iOS的一些代码到Mac OS X,任何人都可以给我一些提示如何在iOS中改变这些用户界面到Mac OS X

UIGraphicsBeginImageContext(CGSizeMake(width , height)); 
[image drawInRect:CGRectMake(0, 0,width, height)]; 
image = UIGraphicsGetImageFromCurrentImageContext(); 
UIGraphicsEndImageContext(); 

UIGraphicsGetImageFromCurrentImageContext(); 

UIImageJPEGRepresentation(newImage, 0.75); 

谢谢。

回答