![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
功能实现
typingios
叫我序猿好了
展开
-
UIbutton 按钮做3D旋转动画 CATransform3DCAAnimation
- (CAAnimation *)animationRotate{ // UIButton *theButton = sender; // rotate animation CATransform3D rotationTransform = CATransform3DMakeRotation(M_PI, 0.5, -0.5,0.5);原创 2012-11-09 18:52:11 · 8023 阅读 · 0 评论 -
iphone 保存图片到相册照片库
已知图片保存到相册UIImageWriteToSavedPhotosAlbum([UIImage imageNamed:photoName], self, @selector(image:didFinishSavingWithError:contextInfo:), nil);- (void)image:(UIImage *)image didFinis原创 2012-08-07 10:49:22 · 4942 阅读 · 0 评论 -
UIImage图片转NSData
在Iphone上有两种读取图片数据的简单方法:UIImageJPEGRepresentation 取UIImage的JPEG格式的NSDataUIImagePNGRepresentation. 取UIImage的PNG格式的NSDataUIImageJPEGRepresentation函数需要两个参数:图片的引用和压缩系数.而UIImagePNGRepresentati原创 2012-06-14 15:56:27 · 16437 阅读 · 0 评论 -
查询appStore的应用版本信息
比如查看微信相关的apphttp://itunes.apple.com/search?term=微信&entity=software查看某应用的版本等详细信息http://itunes.apple.com/lookup?id=APP_ID这样就可以判断最近版本来提示更新所有的APIThe following are examples of fully-q原创 2013-06-21 11:37:25 · 3695 阅读 · 0 评论 -
使用block遍历数组成员的方法
NSArray *array = [NSMutableArrayarrayWithObjects:@"1",@"2",@"3",nil]; [arrayenumerateObjectsUsingBlock:^(id obj,NSUInteger idx, BOOL *stop) { NSLog(@"index:%d desc:%@",原创 2013-08-02 18:26:26 · 4530 阅读 · 0 评论