功能实现
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 · 8101 阅读 · 0 评论 -
iphone 保存图片到相册照片库
已知图片保存到相册 UIImageWriteToSavedPhotosAlbum([UIImage imageNamed:photoName], self, @selector(image:didFinishSavingWithError:contextInfo:), nil); - (void)image:(UIImage *)image didFinis原创 2012-08-07 10:49:22 · 5010 阅读 · 0 评论 -
UIImage图片转NSData
在Iphone上有两种读取图片数据的简单方法: UIImageJPEGRepresentation 取UIImage的JPEG格式的NSData UIImagePNGRepresentation. 取UIImage的PNG格式的NSData UIImageJPEGRepresentation函数需要两个参数:图片的引用和压缩系数. 而UIImagePNGRepresentati原创 2012-06-14 15:56:27 · 16556 阅读 · 0 评论 -
查询appStore的应用版本信息
比如查看微信相关的app http://itunes.apple.com/search?term=微信&entity=software 查看某应用的版本等详细信息 http://itunes.apple.com/lookup?id=APP_ID 这样就可以判断最近版本来提示更新 所有的API The following are examples of fully-q原创 2013-06-21 11:37:25 · 3986 阅读 · 0 评论 -
使用block遍历数组成员的方法
NSArray *array = [NSMutableArray arrayWithObjects:@"1",@"2",@"3",nil]; [array enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { NSLog(@"index:%d desc:%@",原创 2013-08-02 18:26:26 · 4616 阅读 · 0 评论
分享