随笔 - 566  文章 - 2  评论 - 77  阅读 - 117万
12 2011 档案
【转载】 iphone使用NSOperationQueue简化多线程开发
摘要:1:原文摘自:http://disanji.net/2011/08/10/%E4%BD%BF%E7%94%A8nsoperationqueue%E7%AE%80%E5%8C%96%E5%A4%9A%E7%BA%BF%E7%A8%8B%E5%BC%80%E5%8F%91/使用NSOperationQueue简化多线程开发来自Fgamers2011年8月10日860 次阅读 评论 (0)多线程开发是一件需要特别精心的事情,即使是对有多年开发经验的工程师来说。为了能让初级开发工程师也能使用多线程,同时还要简化复杂性。各种编程工具提供了各自的办法。对于iOS来说,建议在尽可能的情况下避免直接操作线程. 阅读全文
posted @ 2011-12-31 15:20 wtq 阅读(374) 评论(0) 推荐(0) 编辑
iphone GCDAsyncSocket 详解
摘要:1,原文摘自:https://github.com/robbiehanson/CocoaAsyncSocket/wiki/Intro_GCDAsyncSocketReading & WritingOne of the best features of the library is "queued read/write operations". What does that mean? A quick code example may explain it best:NSError *err = nil;if (![socket connectToHost:@&quo 阅读全文
posted @ 2011-12-31 11:32 wtq 阅读(6272) 评论(2) 推荐(0) 编辑
ffmpeg 获取视频关键帧
摘要:1:http://blog.csdn.net/tipboy/article/details/70524842:ffmpeg教程:http://dranger.com/ffmpeg/tutorial01.htmlav_register_all();if(av_open_input_file(&pFormatCtx,filename,NULL,0,NULL)!=0)printf("error!\n");if(av_find_stream_info(pFormatCtx)<0)printf("error!\n");videoStream=-1;f 阅读全文
posted @ 2011-12-30 15:37 wtq 阅读(17183) 评论(0) 推荐(0) 编辑
摄像头视频采集压缩及传输
摘要:原文摘自:http://my.oschina.net/cmffire/blog/11290引言:摄像头基本的功能还是视频传输,那么它是依靠怎样的原理来实现的呢?所谓视频传输:就是将图片一张张传到屏幕,由于传输速度很快,所以可以让大家看到连续动态的画面,就像放电影一样。一般当画面的传输数量达到每秒24帧时,画面就有了连续性。下边我们将介绍摄像头视频采集压缩及传输的整个过程。一.摄像头的工作原理(获取视频数据)摄像头的工作原理大致为:景物通过镜头(LENS)生成的光学图像投射到图像传感器表面上,然后转为电信号,经过A/D(模数转换)转换后变为数字图像信号,再送到数字信号处理芯片(DSP)中加工处理 阅读全文
posted @ 2011-12-30 11:35 wtq 阅读(784) 评论(0) 推荐(0) 编辑
iphone 简单的iPhone播放器
摘要:1.http://www.cnblogs.com/KidReborn/archive/2010/10/07/1845097.html-(void)openMovie:(id)sender{ NSString *path = [[NSBundle mainBundle] pathForResource:@"movie" ofType:@"m4v"]; MPMoviePlayerController *movieController = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fi 阅读全文
posted @ 2011-12-29 14:12 wtq 阅读(324) 评论(0) 推荐(0) 编辑
视频相关总结
摘要:1,什么情况下,播放器播放视频才算是流畅的呢? 答:如果机器性能跟得上(现在的机器都没有问题的),解一帧的时间小于帧与帧之间的正常间隔,每帧的播放是靠PTS来控制的,解码器解完每幅图像,都会给出该图像的PTS,video renderer就能图像的PTS来安排显示。如果在directshow框架下,用ms的video renderer,不需要在解码器中用计时器,只要给出正确的PTS,让video renderer控制显示就行了。解码器可以是一个简单的transform. 阅读全文
posted @ 2011-12-28 21:07 wtq 阅读(227) 评论(0) 推荐(0) 编辑
【转载】I,P,B帧和PTS,DTS的关系
摘要:1:原文摘自:http://www.cnblogs.com/qingquan/archive/2011/07/27/2118967.html基本概念:I frame :帧内编码帧 又称intra picture,I 帧通常是每个 GOP(MPEG 所使用的一种视频压缩技术)的第一个帧,经过适度地压缩,做为随机访问的参考点,可以当成图象。I帧可以看成是一个图像经过压缩后的产物。P frame: 前向预测编码帧 又称predictive-frame,通过充分将低于图像序列中前面已编码帧的时间冗余信息来压缩传输数据量的编码图像,也叫预测帧;B frame: 双向预测内插编码帧 又称bi-direct 阅读全文
posted @ 2011-12-28 20:57 wtq 阅读(303) 评论(0) 推荐(0) 编辑
iPhone NSBundle的使用
摘要:本文摘自:http://liwpk.blog.163.com/blog/static/363261702011573638250/NSBundle束,是一种特定的文件类型,其中的内容遵循特定的结构。NSBundle的一个主要作用是获取Resources文件夹中的资源。使用主束来获取需要的资源文件:NSBundle*bundle = [NSBundlemainBundle];NSString*plistPath = [bundlepathForResource:@"statedictionary"ofType:@"plist"];或者简写成一行:NSStr 阅读全文
posted @ 2011-12-28 14:19 wtq 阅读(894) 评论(0) 推荐(0) 编辑
解构Hello Objective-C程序读书笔记
摘要:数值型赋值给布尔型,1.NSString 包含着许许多多的特性,比如可以直接转化为数字类型(整型,浮点型)1NSString*test=@"thisismyname";2if(NSOrderedAscending==[testcompare:@"thisismyname2"]){3NSLog(@"升值");4}5NSString*floatValueString=@"12";67NSLog(@"%dfloatValueis%f",[testlength],[floatValueStringflo 阅读全文
posted @ 2011-12-27 21:35 wtq 阅读(355) 评论(0) 推荐(0) 编辑
mac subversion安装及使用教程 以及svnX的使用
摘要:1:subversion使用2:subX的使用Subversion With Mac OS XTutorialTags:mac os x,subversion,textmate,tutorialPosted 21. September 2006.Updated: April 2011Subversion is a version control system that allows you to work with other people on a project and switch back easily to every version ever made. It can be use 阅读全文
posted @ 2011-12-27 15:59 wtq 阅读(13278) 评论(0) 推荐(0) 编辑
iphone smartsvn 下载
摘要:1,java smartSvn 下载地址1:http://bbs.weiphone.com/read-htm-tid-2275121.html下载地址2:http://jdk7.java.net/macportpreview/ 阅读全文
posted @ 2011-12-27 10:44 wtq 阅读(229) 评论(0) 推荐(0) 编辑
svn 版本控制
摘要:具体操作可参考subversion快速入门 subversion实践关于版本控制,应该注意的事项。1,如果多人共同编辑一个文件时,那么每个人在编辑时,都应该先更新文件,然后修改提交,但提交时,可能存在冲突,如何避免冲突呢?所谓的冲突就是A本人上次更新的版本跟他现在要上交的版本(除新增的)不相同,这就产生了冲突。 解决办法:1,使用 锁定-修改-解锁方式对文件进行更新。 2,使用 拷贝-修改-合并方式对文件进行更新。 阅读全文
posted @ 2011-12-26 16:47 wtq 阅读(204) 评论(0) 推荐(0) 编辑
iphone iPhone开源项目汇总(更新版)
摘要:1原文摘自:http://www.cocoachina.com/iphonedev/toolthain/2011/1109/3480.html本文是CocoaChina论坛收藏量很高的帖子,帖子作者favormmz在自己的blog更新了一些开源项目,供大家参考扫描wifi信息:http://code.google.com/p/uwecaugmentedrealityproject/http://code.google.com/p/iphone-wireless/条形码扫描:http://zbar.sourceforge.net/iphone/sdkdoc/install.htmltcp/ip的 阅读全文
posted @ 2011-12-26 08:51 wtq 阅读(296) 评论(0) 推荐(0) 编辑
iphone three20详解 ppt
摘要:1:http://www.slideshare.net/iphonedevbr/three20 阅读全文
posted @ 2011-12-23 11:18 wtq 阅读(414) 评论(0) 推荐(0) 编辑
iphone Three20如何添加到工程,以及如何添加删除图片的按钮。
摘要:最近由于项目需要,需要做一个相册查看器来查看项目截图的图片。于是发现Three20的功能很强大,有自带的相册功能,于是就将其引用到工程里头来。首先是要下载three20并安装到工程里头。 如果是想手动将three20添加到xcode4.2的话,可参照此链接:添加three20到xcode4.2教程 如果想通过指令来将three20添加到xcode的话,可参照此链接通过指令将three20添加到xcode教程 通过指令来将three20添加到xcdoe时,操作比较快速。但有几点需要注意。1.尽量让下载的three20 与工程处于同一个目录,这样在后续的设置中会比较方便。2.如果PROJECT.. 阅读全文
posted @ 2011-12-23 10:02 wtq 阅读(888) 评论(0) 推荐(0) 编辑
three20 URL-Based Navigation
摘要:1:原文摘自:http://three20.info/article/2010-10-06-URL-Based-Navigation#troubleshootingURL-Based NavigationNavigation in iPhone apps can be challenging - there is no single prescribed way to open a view and pass data into it. Most applications rely on each view having a particular API that the callers mu 阅读全文
posted @ 2011-12-22 16:58 wtq 阅读(407) 评论(0) 推荐(0) 编辑
iphone three20 保存本地的图片
摘要:1:http://www.cnblogs.com/innhyul/archive/2010/11/13/1876583.html由于开发需要,准备做一个图片浏览器,用来显示已经下载存处在本地的图片.在网上搜索时发现了一个很好的库Three20, 320的简介参见这里.320分为Network,Style,Core,UI四部分,其中UI可以实现的部分效果可以参见下面这些图片,下载Three20需要安装git,具体配置方法参见这篇教程.320自带了一些sample,其中TTCatalog中有TTPhotoViewController的用法示例,不过所有示例中的图片都是远程网络地址,[[[MockP 阅读全文
posted @ 2011-12-20 17:27 wtq 阅读(437) 评论(0) 推荐(0) 编辑
iphone 压缩图片到指定的大小
摘要:1.本文摘自:http://www.cocoachina.com/bbs/read.php?tid-20940.html#import <Foundation/Foundation.h>@interface UIImage (UIImageExt)- (UIImage*)imageByScalingAndCroppingForSize:(CGSize)targetSize;@end复制代码#import "UIImageExt.h"@implementation UIImage (UIImageExt)- (UIImage*)imageByScalingAndC 阅读全文
posted @ 2011-12-20 14:53 wtq 阅读(2992) 评论(0) 推荐(0) 编辑
Mac下如何显示隐藏文件
摘要:缺省情况下,在Mac下是不显示隐藏文件的,Finder 也未提供设置是否显示隐藏文件的选项,不像Windows下,有一个“文件夹选项“设置界面里可以控制,但这并不表示 Mac 下无法显示隐藏文件,我可以通过“终端”,用命令行设置这个选项,命令如下:显示:defaults write com.apple.finderAppleShowAllFiles -bool true隐藏:defaults write com.apple.finderAppleShowAllFiles -bool false除了命令行设置外,也有第三方工具可以实现,有一个叫OnyX的程序可以实现,方法二:首先,转到你要查看隐 阅读全文
posted @ 2011-12-20 14:31 wtq 阅读(36906) 评论(1) 推荐(0) 编辑
UIImage的scale是什么?
摘要:原文摘自:http://www.douban.com/note/77384858/iPhone OS4.0加入了scale factor,这表示point长度/pixel长度。在分辨率为960*640的设备上,我们知道逻辑坐标系还是不变480*320,那么一个point有两个pixel长,所以scale=2.0。在分辨率为480*320的设备商,point和pixel长度相同,scale=1.0。为了程序自动适应分辨率,程序会自动给UIScreen.scale赋值,[UIScreen mainScreen].scale = 1.0 or 2.0。我们编程,画图,窗口,字体等都是矢量图,通过sc 阅读全文
posted @ 2011-12-20 11:42 wtq 阅读(4135) 评论(0) 推荐(1) 编辑
iphone 缩放图片
摘要:1本文摘自:http://dev.10086.cn/cmdn/wiki/index.php?doc-view-3563.htmlUIImage 图片缩放编辑文档C代码#import<Foundation/Foundation.h>@interfaceUIImage(scale)-(UIImage*)scaleToSize:(CGSize)size;@endC代码////UIImageScale.m//golfChina////Createdbychao.wangon6/1/10.//Copyright2010__MyCompanyName__.Allrightsreserved./ 阅读全文
posted @ 2011-12-20 11:36 wtq 阅读(273) 评论(0) 推荐(0) 编辑
iphone error when adding Three20 to new XCode 4 proj
摘要:I have watched the video on how to do the installation for a new project. My project is called Test1 and I typed in:python three20/src/scripts/ttmodule.py -p Test1/Test1.xcodeproj Three20and it gives me:ERROR:root:Unable to open the project file atthispath (is it readable?): Test1/Test1.xcodeproj/pr 阅读全文
posted @ 2011-12-20 10:43 wtq 阅读(380) 评论(0) 推荐(0) 编辑
iphone "Three20.h"file not found
摘要:1 犯了一个低级的错误,竟然在导入头文件时,写成这样#import "Thre20.h/Three20.h",这简直是晕了。应该写成#import"Three20/Three20.h"具体参考如下:http://chepri.com/2011/04/22/visual-guide-manually-adding-three20-xcode-4-project/这篇文章非常的不错哦。 阅读全文
posted @ 2011-12-20 10:31 wtq 阅读(612) 评论(0) 推荐(0) 编辑
iphone 如何将three20添加到xcode4.2中去
摘要:1原文摘自:http://chepri.com/2011/04/22/visual-guide-manually-adding-three20-xcode-4-project/A Visual Guide to Manually Adding Three20 to your Xcode 4 ProjectPosted onApr 22, 2011Three20 is a modular open source Objective-C library used by numerous applications in the App Store, including well-known bran 阅读全文
posted @ 2011-12-20 10:23 wtq 阅读(820) 评论(0) 推荐(0) 编辑
iphone 如何成功的把three20成功的添加到xcode中去。
摘要:1:原文摘自:http://three20.info/article/2010-10-06-Adding-Three20-To-Your-ProjectIntroductionBefore you begin using Three20 in your project, you should decide what directory layout works best for you.Recommended: Shared LayoutIn this layout, Three20 is shared between multiple projects. If you need to mak 阅读全文
posted @ 2011-12-20 09:49 wtq 阅读(357) 评论(0) 推荐(0) 编辑
【转载】 xcode3换xcode4,three20项目问题解决办法
摘要:http://three20.info/article/2011-03-10-Xcode4-Support首先把Three20.xcodeProj编译一下,然后安装下面方法Xcode 4 Transition GuideApple is pushing for Xcode 4 to be the primary developmentenvironment and, as a result, many of us will transition from Xcode3.2 to Xcode 4 over the coming weeks. This guide has been puttoge 阅读全文
posted @ 2011-12-20 09:04 wtq 阅读(362) 评论(0) 推荐(0) 编辑
iphone 如何通过指令来添加three20
摘要:1,原文摘自:http://blog.csdn.net/linhanmin/article/details/69072861.新建Three20文件夹2.用Terminal进入到新建的文件夹3.运行指令下载three20git clone https://github.com/facebook/three20.git4.在下载的时候在Three20文件下新建一个Three20Demo的项目5.下载完three20后,运行指令即可在新建项目里添加three20python three20/src/scripts/ttmodule.py -p ThreeDemo/ThreeDemo.xcodepr 阅读全文
posted @ 2011-12-19 15:31 wtq 阅读(802) 评论(0) 推荐(0) 编辑
iphone three20 How to Start Three20 Photo Viewer in Thumbnail view?
摘要:1原文地址:http://stackoverflow.com/questions/7499591/how-to-start-three20-photo-viewer-in-thumbnail-viewYou should useTTThumbsViewControllerinstead ofTTPhotoViewController. There's a good example of it in three20 TTCategory sample app.TTThumbsViewControlleralso uses a photo source, so you won't 阅读全文
posted @ 2011-12-17 16:32 wtq 阅读(289) 评论(0) 推荐(0) 编辑
three20 如何将three20中的demo添加到自己的应用程序中。
摘要:1:参考地址:http://stackoverflow.com/questions/8324516/three20-photo-viewer-customization- (void) viewDidLoad { [[TTURLRequestQueue mainQueue] setMaxContentLength:0]; TTNavigator *navigator = [TTNavigator navigator]; UIWindow *window = [UIApplication sharedApplication].keyWindow; navigator.window = w... 阅读全文
posted @ 2011-12-17 15:57 wtq 阅读(388) 评论(0) 推荐(0) 编辑
iPhone Three20图片查看器
摘要:参考地址:http://www.raywenderlich.com/1430/how-to-use-the-three20-photo-viewer图片查看器demo1: 阅读全文
posted @ 2011-12-17 13:41 wtq 阅读(265) 评论(0) 推荐(0) 编辑
iPhone Three20软件引擎之构建开发环境与HelloWorld
摘要:1:原文摘自:http://blog.csdn.net/xys289187120/article/details/7017432雨松MOMO原创文章如转载,请注明:转载自雨松MOMO的博客原文地址:http://blog.csdn.net/xys289187120/article/details/7017432 亲爱的朋友们,如果你现在在做IOS 软件开发,不妨来看看Three20这套框架。如果你对它还比较陌生?MOMO在这里告诉你它绝对是一个IOS 软件开发的利器,有了它绝对让你的软件事半功倍。three20框架的前身是facebook iPhone 客户端。 后来facebook将其开源了 阅读全文
posted @ 2011-12-17 12:25 wtq 阅读(307) 评论(0) 推荐(0) 编辑
iphone Three20中TTNavigator用法总结
摘要:1:http://www.cocoachina.com/iphonedev/toolthain/2011/1027/3428.html简单映射:Three20中的TNavigator对于软件导航很有用,只需要维护一张map映射表就行了。就像url表示一个网页一样,Three20也采用了相同的方式,用url关联页面。大家可以参看TTNavigatorDemo中的源码:TTURLMap* map = navigator.URLMap;// Any URL that doesn't match will fall back on this one, and open in the web b 阅读全文
posted @ 2011-12-17 12:17 wtq 阅读(426) 评论(0) 推荐(0) 编辑
1,使用three20来创建tableview
摘要:1,本demo参照:http://www.raywenderlich.com/656/introduction-to-three20应用程序如何创建2,本demo的原始参照:http://www.raywenderlich.com/1430/how-to-use-the-three20-photo-viewer本文demo:http://files.cnblogs.com/85538649/Three20TestByTwice2.zip 阅读全文
posted @ 2011-12-16 16:14 wtq 阅读(205) 评论(0) 推荐(0) 编辑
iphone xcode for lion 下载地址
摘要:1:https://developer.apple.com/downloads/index.action 阅读全文
posted @ 2011-12-16 14:01 wtq 阅读(208) 评论(0) 推荐(0) 编辑
iphone xcode4.2 for lion 下载
摘要:1:原文摘自:http://bbs.weiphone.com/read-htm-tid-3412071.html虚拟机扫盲⑴ 虚拟机慢不?--性能有折扣是必然的. 至于具体是“慢点” 还是“慢很多”, 看你机器配置也看具体应用.Intel Core i5 / i7 用虚拟机日常办公类 / 开发应用都没问题,图像处理不行⑵ 用虚拟机还是用双系统?--其实就两个因素: 应用, 和时间/频率. 游戏和CAD之类的大型应用建议双系统来获得最佳性能. 如果只有日常的中轻度开发应用, 虚拟机足够好而且很方便.--双系统WIFI的驱动, 比虚拟机麻烦⑶ 虚拟机装什么版本?--Mac OS X Lion 10 阅读全文
posted @ 2011-12-16 12:55 wtq 阅读(4816) 评论(0) 推荐(0) 编辑
iphone three20 How To Use the Three20 Photo Viewer
摘要:1,本页详情:http://www.raywenderlich.com/1430/how-to-use-the-three20-photo-viewer 阅读全文
posted @ 2011-12-15 20:30 wtq 阅读(239) 评论(0) 推荐(0) 编辑
iphone 新浪微博接口
摘要:原文摘自:http://www.cnblogs.com/ulihj/category/279864.html 阅读全文
posted @ 2011-12-15 16:44 wtq 阅读(213) 评论(0) 推荐(0) 编辑
【转载】iphone[Three20] Three20系列之Three20概述
摘要:本文摘自:http://apps.hi.baidu.com/share/detail/31820391[Three20] Three20系列之Three20概述[Three20]Three20系列之Three20概述本文由凌寒翻译自Three20的技术资料并稍作修。转载请注明出处:www.yuephone.comThree20在概念上分为四个部分:所有一切的中心是内核(Core),围绕在它周围是的网络(Network)、用户界面(UI)和样式(Style)。内核(Core)考虑到内核(Core)就像是Objective-C开发的瑞士军刀一样,我们应该花一些时间来熟悉它的功能特点。通过Three 阅读全文
posted @ 2011-12-15 10:53 wtq 阅读(319) 评论(0) 推荐(0) 编辑
【转载】iphone three20的安装使用
摘要:原文摘自:http://www.cnblogs.com/wwwkhd/archive/2011/01/24/1943441.html一、使用Three20建立新的工程1、下载Three20的源码2、打开终端,到templates/目录,然后简单输入如下命令:bash InstallTemplates3.2.5.Command命令执行过后,Three20的模板就被加入到Xcode中了。3、新建工程时,可以在“New Project”对话框中看到Three20的模板。选择相应的模板就可以新建Three20的工程。需要注意的是,新建的工程必须和Three20的库在同一个目录下。4、打开Three20 阅读全文
posted @ 2011-12-15 10:41 wtq 阅读(309) 评论(0) 推荐(0) 编辑
iphone 利用UIImageView来制作幻灯片
摘要:1:原文摘自:http://www.mobiletrain.org/lecture/doc/iphone/2011-10/735.html在 iPhone 应用里加入全屏动画可以让应用更具趣味性,以下这段代码可以实现这一功能AnimationDemoViewController.m- (void)viewDidLoad {[super viewDidLoad];//指定ImageView的展示区域UIImageView *fishAni=[UIImageView alloc] initWithFrame:[UIScreen mainScreen] bounds];//将指定的图片载入至 ani 阅读全文
posted @ 2011-12-14 21:12 wtq 阅读(927) 评论(0) 推荐(0) 编辑
iPhone 的解锁、越狱、激活、固件等等是什么意思,有什么分别?
摘要:1:http://hi.baidu.com/meidea/blog/item/b41dcacef090e10b93457e32.html/cmtid/fba5e2f86ff30d01d8f9fdcb关键词:解锁、越狱、破解、软解、硬解、卡贴、激活、固件、升级、恢复、更新。虽然我没有iPhone,但一直在关注,而特别被广泛提到的破解、越狱、固件等等术语,多有不明之处,经过收集和请教,理解如下,不知对不对,请网友指正。此外,对一代和二代的iPhone,可能有不同,这我就更不知道了。一、有锁和无锁比如现在有一部iPhone,3G iPhone,有锁版或无锁版,有锁版就是加了网络锁,也就是绑定了运营商 阅读全文
posted @ 2011-12-14 14:00 wtq 阅读(981) 评论(0) 推荐(0) 编辑
iphone 使用itunes同步手机会删除手机里头的应用程序
摘要:问题:使用itunes同步从苹果商店下载下来的应用程序,会删除iphone手机里头的应用程序。解决办法: 那是因为同步的时候,你的电脑上的itunes里面没有你手机里面的程序。我是这么做的:设备那里点右键,有个传输购买项目,点一下,把手机上的都传到电脑上,然后再同步。 阅读全文
posted @ 2011-12-14 10:14 wtq 阅读(816) 评论(0) 推荐(0) 编辑
iphone 如何查看代码的总行数
摘要:1原文摘自:http://www.cocoachina.com/bbs/read.php?tid=80199xcode 项目代码行统计统计Xcode项目代码行数1、打开终端。2、cd到你项目的路径。3、输入下面的指令: grep -d recurse "\n" classes | wc -l classes,如果你不是默认的classes路径,改之。效果:yifei-yumatoMacBook-Pro:QJSG V0.3.1.1 yuyifei2000$ lsClassesResourcesmain.mLICENSE.cocos2dbuildzhujiemian1.xcod 阅读全文
posted @ 2011-12-13 13:10 wtq 阅读(1296) 评论(0) 推荐(0) 编辑
【转载】iphone 使用Three20开发iPhone相册
摘要:1:原文链接:http://www.wuleilei.com/blog/189最近几个月一直都在做iPhone项目,至于持续到什么时候还不得而知,所以就只能写iPhone的开发日记了,呵呵,不懂的盆友可以飘过哈~今天是转载的一片老外用Three20库开发iPhone相册的文章,因为我也使用过此库,感觉很强大,转载过来给需要的童鞋参考。先来张效果图:Photo applications are very popular with iPhone users. One of the core features of popular photo applications is the Photo Ga 阅读全文
posted @ 2011-12-12 16:16 wtq 阅读(683) 评论(0) 推荐(0) 编辑
iphone 保存图片以及读取图片 demo
摘要:显示图片:思路:想利用fileManager将某一目录的文件夹中的图片名称保存在可变数组中,然后再利用循环,将图片保存到图片数组中,然后在显示出来。显示图片-(IBAction)showImage:(id)sender{NSFileManager*fileManager=[NSFileManagerdefaultManager];NSArray*files=[NSArrayarrayWithArray:[fileManagerURLsForDirectory:NSMusicDirectoryinDomains:NSUserDomainMask]];NSLog(@"files:%d&q 阅读全文
posted @ 2011-12-12 15:43 wtq 阅读(1868) 评论(0) 推荐(0) 编辑
iphone 判断某一目录是否包含文件夹
摘要:1,判断某一路径是否包含后一文件夹[fileManager fileExistsAtPath:filePathName isDirectory:(&isDir)]; if (!isDir) { UIImage *temp = [UIImage imageWithContentsOfFile:filePathName]; [imgArray addObject:temp]; } isDir = NO;2.判断某一文件是否是png文件 if ([filePathName hasSuffix:@"png"]) { UIImage *temp = [UIImage... 阅读全文
posted @ 2011-12-12 14:59 wtq 阅读(385) 评论(0) 推荐(0) 编辑
iphone ios对文件的操作
摘要:原文链接:http://disanji.net/2010/12/16/ios-file-handle/iOS中对文件的操作来自Fgamers2010年12月16日596 次阅读 评论 (1)因为应用是在沙箱(sandbox)中的,在文件读写权限上受到限制,只能在几个目录下读写文件:Documents:应用中用户数据可以放在这里,iTunes备份和恢复的时候会包括此目录tmp:存放临时文件,iTunes不会备份和恢复此目录,此目录下文件可能会在应用退出后删除Library/Caches:存放缓存文件,iTunes不会备份此目录,此目录下文件不会在应用退出删除在Documents目录下创建文件代. 阅读全文
posted @ 2011-12-12 11:02 wtq 阅读(511) 评论(0) 推荐(0) 编辑
iphone 图片重名问题
摘要:进行图片重命名时,碰到的问题如下:1,无法重命名图片,并保存到相册中, 解决办法:2,将图片保存到应用程序的沙盒中,并重命名,但电脑如何查看应用程序的沙盒中。 解决办法: 通过91助手就可以查看沙盒中的图片了。3,自己创建一个图片查看器,然后对图片进行浏览,但电脑如何查看应用程序的沙盒中。 解决办法:4,遍历已重命名(格式为20111212)的应用程序沙盒中的图片并将其保存到iphone相册中,结果这些图片会被重命名为iphone规定的格式,如IMG_xxx.png, 解决办法: 阅读全文
posted @ 2011-12-12 10:20 wtq 阅读(1345) 评论(0) 推荐(0) 编辑
iPhone OS编程指南
摘要:当您的程序退出时,除了对未保存的数据进行保存之外,还应该保存当前的状态信息;而在启动时,则应该寻找这些状态信息,并将程序恢复到最后一次使用时的状态。这样可以使用户回到最后一次使用时的状态,使用户体验更加一致。以这种方式保存用户的当前位置还可以避免每次启动都需要经过多个屏幕才能找到需要的信息,从而节省使用的时间。iPhone OS编程指南阅读日记1.本地应用程序还可以将数据保存在本地的文件系统中,甚至可以通过定制的URL类型来和安装在设备上的其它程序进行通讯。这样就可以调用其他应用程序的数据了,实现应用程序的通道。2.框架是一个程序包,包含共享库以及相关资源。3,Interface Builde 阅读全文
posted @ 2011-12-09 11:26 wtq 阅读(295) 评论(0) 推荐(0) 编辑
iphone 玩转iphone教程
摘要:iphone教程:http://iphone.tgbus.com/zt/iphone3gszt/phone/index.html 阅读全文
posted @ 2011-12-09 08:51 wtq 阅读(191) 评论(0) 推荐(0) 编辑
模仿 iphone 自带 Photos 图片预览的例子下载
摘要:1.本文摘自:http://www.devdiv.com/thread-75506-1-2.htmlhttp://www.devdiv.com/forum.php? ... TEzNzg4NnwxfDc0OTc3 阅读全文
posted @ 2011-12-08 15:25 wtq 阅读(223) 评论(0) 推荐(0) 编辑
iphone/ipad保存图片问题(已解决)
摘要:1:原文摘自:http://blog.163.com/alex_kame/blog/static/145467482011730316919/#import <UIKit/UIKit.h>@class ScenarioViewController;@interface BackGroundSet : UIViewController <UINavigationControllerDelegate,UIImagePickerControllerDelegate>{IBOutlet UIImageView *myImageView;ScenarioViewControlle 阅读全文
posted @ 2011-12-08 09:12 wtq 阅读(2005) 评论(0) 推荐(0) 编辑
【轉載】iphone UITableView效果收集
摘要:1。http://cenphoenix.iteye.com/blog/709691某些打不开需翻()墙Customizing the background/border colors of a UITableView (grouped style)http://pessoal.org/blog/2009/02/25/customizing-the-background-border-colors-of-a-uitableview/UITableViewCell Dynamic Heighthttp://www.cimgf.com/2009/09/23/uitableviewcell-dynam 阅读全文
posted @ 2011-12-07 16:53 wtq 阅读(352) 评论(0) 推荐(0) 编辑
【转载】详解iPhone文件读写系统操作教程
摘要:1:原文摘自:http://mobile.51cto.com/iphone-282233.htmiPhone文件读写系统操作教程是本文要介绍的内容,对于一个运行在iPhone得app,它只能访问自己根目录下得一些文件(所谓sandbox).一个app发布到iPhone上后,它得目录结构如下:1、其中得 app root 可以用 NSHomeDirectory() 访问到;2、Documents 目录就是我们可以用来写入并保存文件得地方,一般可通过:NSArray*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, N.. 阅读全文
posted @ 2011-12-07 15:41 wtq 阅读(349) 评论(0) 推荐(0) 编辑
iphone 存图片和视频到iPhone相册
摘要:1:原文摘自:http://wonderzl.iteye.com/blog/1007642当保存完成后,调用的回调方法:Obj-c代码-(void)image:(UIImage*)imagedidFinishSavingWithError:(NSError*)errorcontextInfo:(void*)contextInfo{//Wasthereanerror?if(error!=NULL){//Showerrormessage…NSLog(@"Saveimagefailed");}else//Noerrors{//Showmessageimagesuccessfull 阅读全文
posted @ 2011-12-07 15:36 wtq 阅读(947) 评论(0) 推荐(0) 编辑
iphone 异步获取图片
摘要:1:本文摘自:http://mobile.51cto.com/iphone-281443.htmiPhone应用开发之学习点滴iPhone应用开发中学习点滴是本文要介绍的内容,主要介绍了IPhone之NSBundle的使用、IPhone之ASINetworkQueue 异步队列、IPhone之获取Settings设置的内容,来看本文内容详解。IPhone之NSBundle的使用NSBundle的对象可以获取应用程序安装目录的附件。附件包括了,当前应用程序下,所有的文件。(图片、属性列表等)获取XML文件NSString*filePath=[[NSBundlemainBundle]pathFor 阅读全文
posted @ 2011-12-07 15:14 wtq 阅读(317) 评论(0) 推荐(0) 编辑
【转载】 iPhone代码片段收集(持续更新)
摘要:1:原文摘自:http://mkhgg.blog.51cto.com/1741572/554134 1.stringWithFormat 用法: [NSStringstringWithFormat:@"Hight:%d°%@Low:%d°%@",[Temp],@"C",[lTemp],@"C"]; NSString to NSData:NSString* str= @"kilonet";NSData*data=[str dataUsingEncoding:NSUTF8StringEncoding 阅读全文
posted @ 2011-12-07 15:10 wtq 阅读(213) 评论(0) 推荐(0) 编辑
iphone 从网络上获取图片并保存 详解iPhone应用开发中缓存文件
摘要:1原文摘自:http://mobile.51cto.com/iphone-283165.htmiPhone应用开发中缓存文件是本文要介绍的内容,在iPhone应用程序中,我们经常要用去网络下载一些文件,比如xml,图片等等!但是往往我们经常是需要反复读取这部分数据,或者我们要写一些文件在沙箱中,供下次打开程序的时候使用,这时候我们就需要用到缓存文件(读写文件),今天和大家分享一个Demo,用来缓存从网上下载下来的图片和xml;项目背景:下载从网络下载图片,并写在temp目录下,temp目录下的文件在程序退出时会被清空,所以用来写本次要用的缓存内容很合适(我这么觉得)。1、从一个url下载图片N 阅读全文
posted @ 2011-12-07 14:52 wtq 阅读(680) 评论(0) 推荐(0) 编辑
iphone 应用程序编程指南
摘要:原文摘自:http://www.apple.com.cn/developer/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AudioandVideoTechnologies/AudioandVideoTechnologies.html#//apple_ref/doc/uid/TP40007072-CH19-SW39 阅读全文
posted @ 2011-12-07 14:04 wtq 阅读(156) 评论(0) 推荐(0) 编辑
iphone 利用数组遍历某一文件夹中的图片
摘要:1,使用数组遍历某一文件夹中的图片,代码如下: NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSLog(@"%d",[paths count]); NSError *error = nil; NS 阅读全文
posted @ 2011-12-07 13:41 wtq 阅读(448) 评论(0) 推荐(0) 编辑
iphone 文件系统 读写document中的文件
摘要:1利用FileManage来读取document的文件NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSError *error = nil; NSArray *fileList = [[NSArray alloc.. 阅读全文
posted @ 2011-12-07 11:28 wtq 阅读(320) 评论(0) 推荐(0) 编辑
iphone 把图片存储到document路径下,并读取图片
摘要:1.保存图片到document目录下:代码如下:View Code2.从document目录下显示显示图片代码如下:View Code 阅读全文
posted @ 2011-12-07 10:24 wtq 阅读(545) 评论(0) 推荐(0) 编辑
Iphone 读取 指定 文件 内容(document)
摘要:1原文摘自:http://ruixiazun.blog.163.com/blog/static/906879182011229112144105/在开发iPhone程序时,有时候要对文件进行一些操作。而获取某一个目录中的所有文件列表,是基本操作之一。通过下面这段代码,就可以获取一个目录内的文件及文件夹列表。NSFileManager *fileManager = [NSFileManager defaultManager];//在这里获取应用程序Documents文件夹里的文件及文件夹列表 NSArray *documentPaths = NSSearchPathForDirectoriesI 阅读全文
posted @ 2011-12-07 08:56 wtq 阅读(640) 评论(0) 推荐(0) 编辑
iphone Documents文件中保存的图片如何读取并显示?
摘要:1:原文摘自:http://www.cocoachina.com/bbs/read.php?tid=32931我在Documents文件中建了一个文件夹fileName, 文件夹保存的有一张图片.我想读出来并在UIImageView中显示,这如何实现呢?下面是我写的代码,不知道哪出问题了??#import <UIKit/UIKit.h>@interfaceUIView{UIImageView *image;}@property (nonatomic, retain) IBOutlet UIImageView *image;@end@implementationNSFileManag 阅读全文
posted @ 2011-12-07 08:55 wtq 阅读(1042) 评论(0) 推荐(0) 编辑
iPhone应用 AVAudioPlayer播放音频讲解
摘要:1.本文摘自:http://mobile.51cto.com/iphone-278789.htmiPhone应用AVAudioPlayer播放音频讲解是本文要介绍的内容,iPhone是媒体大师,其内建的iPod功能可轻松的处理音频和视频,下面我将对AVAudioPlayer这个音频播放类详细的介绍。使用AVAudioPlayer可以实现载入、播放、暂停、停止音频,监控平均和峰值音量水平.AVAudioPlayer处理音频中断当用户在音频回放期间受到电话时,音频会消失,出现这种情况时AVAudioPlayer委托接受audioPlayerBeginInterruption:回调,音频会话暂时无效 阅读全文
posted @ 2011-12-07 08:37 wtq 阅读(592) 评论(0) 推荐(0) 编辑
iphone iPhone开发应用中案例实现举例
摘要:1原文摘自:http://mobile.51cto.com/iphone-284840.htmiPhone开发应用中案例实现举例是本文要介绍的内容,主要是来学习以下小案例的实现过程,来看详细内容。一、从 iPhone/iPad 图片库中读取图片的代码如果您的App涉及到从iPhone/iPad图片库读取图片,不妨看看CocoaChina版主“angellixf”分享的代码,会为您节省很多时间。UIImagePickerController*picker=[[UIImagePickerControlleralloc]init]; picker.delegate=self; picker.sour 阅读全文
posted @ 2011-12-06 22:09 wtq 阅读(271) 评论(0) 推荐(0) 编辑
iphone iPhone开发应用点滴学习
摘要:1:原文摘自:http://mobile.51cto.com/iphone-281558.htmiPhone开发点滴是本文要介绍的内容,主要介绍的是iphone开发中常用的一些小实例,在这作为一个小备忘来学习。先来看详细内容。iPhone中图片的拉伸/圆角处理(Image round corner, aspect fit)图片圆角 image round corner:m_mainImgView.layer.cornerRadius=6; m_mainImgView.layer.masksToBounds=YES;自动适应,保持图片宽高比 aspect fit:m_mainImgView.co 阅读全文
posted @ 2011-12-06 22:07 wtq 阅读(238) 评论(0) 推荐(0) 编辑
iphone iPhone开发中为UINavigationBar设置背景图片方法
摘要:1:原文摘自:http://mobile.51cto.com/iphone-284865.htmiPhone开发中为UINavigationBar设置背景图片方法是本文要介绍的内容,在iPhone开发中, 有时候我们想给导航条添加背景图片, 实现多样化的导航条效果, 用其他方法往往无法达到理想的效果, 经过网上搜索及多次实验, 确定如下最佳实现方案。为UINavigatonBar增加如下Category:@implementationUINavigationBar(CustomImage) -(void)drawRect:(CGRect)rect{ UIImage*image=[UIImage 阅读全文
posted @ 2011-12-06 22:06 wtq 阅读(297) 评论(0) 推荐(0) 编辑
iphone iPhone开发应用UIImage图片对象操作
摘要:1原文摘自:http://mobile.51cto.com/iphone-284346.htmiPhone开发应用UIImage图片对象操作是本文要介绍的内容,主要来学习UIImage图片对象操作,内容不多,主要是以代码实现图片对象的操作。1、根据给定得图片,从其指定区域截取一张新得图片。-(UIImage*)getImageFromImage{ //大图bigImage //定义myImageRect,截图的区域 CGRectmyImageRect=CGRectMake(10.0,10.0,57.0,57.0); UIImage*bigImage=[UIImageimageNamed:@&q 阅读全文
posted @ 2011-12-06 22:05 wtq 阅读(533) 评论(0) 推荐(0) 编辑
iphone iPhone开发中如何将制作图片放大缩小代码实现案例
摘要:1:原文摘自:http://mobile.51cto.com/iphone-285108.htmiPhone开发中如何将制作图片放大缩小案例是本文要介绍的内容,主要是来学习iphone开发中动画的制作,具体内容一起来看本文详解。在IPhone SDK开发范例大全中,有很多的范例码。下面这段范例码,示范了两张图片的交换,以及放大缩小的动画动画效果请参照下图#import<UIKit/UIKit.h> #defineIMAGE_VIEW_1100 #defineIMAGE_VIEW_2101 #defineBIGRECTCGRectMake(0.0f,0.0f,320.0f,435.0 阅读全文
posted @ 2011-12-06 22:03 wtq 阅读(435) 评论(0) 推荐(0) 编辑
iphone 详解iPhone文件读写系统操作教程
摘要:1原文摘自:http://mobile.51cto.com/iphone-282233.htmiPhone文件读写系统操作教程是本文要介绍的内容,对于一个运行在iPhone得app,它只能访问自己根目录下得一些文件(所谓sandbox).一个app发布到iPhone上后,它得目录结构如下:1、其中得 app root 可以用 NSHomeDirectory() 访问到;2、Documents 目录就是我们可以用来写入并保存文件得地方,一般可通过:NSArray*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NS.. 阅读全文
posted @ 2011-12-06 21:55 wtq 阅读(707) 评论(0) 推荐(0) 编辑
iPhone应用程序 将图片保存到相册实例
摘要:1:原文摘自:http://mobile.51cto.com/iphone-278615.htmiPhone应用程序 将图片保存到相册实例是本文要介绍的内容,主要是以代码来实现本文要表现的内容,进入话题。有时候你的应用需要将应用中的图片保存到用户iPhone或者iTouch的相册中。 可以使用UIKit的这个类方法来完成。voidUIImageWriteToSavedPhotosAlbum( UIImage*image, idcompletionTarget, SELcompletionSelector, void*contextInfo ); voidUIImageWriteToSavedP 阅读全文
posted @ 2011-12-06 21:49 wtq 阅读(601) 评论(1) 推荐(0) 编辑
iphone 保存到沙盒中的图片的读取
摘要:1:原文摘自:http://www.devdiv.com/thread-84543-1-1.html- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{ UIImage *baseImage = [info objectForKey:UIImagePickerControllerOriginalImage]; if (baseImage == nil) return; compositeImage =... 阅读全文
posted @ 2011-12-06 21:01 wtq 阅读(604) 评论(0) 推荐(0) 编辑
iphone core animation教程
摘要:1:本文摘自:http://www.cocoachina.com/bbs/read.php?tid=77683&keyword=%BD%D8%CD%BC 阅读全文
posted @ 2011-12-06 20:35 wtq 阅读(193) 评论(0) 推荐(0) 编辑
iphone 尚未解决的问题。
摘要:1,在《iphone基础教程》中的camera示例中,如何将拍照的图片保存到照片库中。 详情见demo:解决办法:在第一个方法中-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo就是这个方法,获取到了image,然后用这个方法写进去UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);就好了哈,你可以用photos 阅读全文
posted @ 2011-12-06 20:05 wtq 阅读(219) 评论(0) 推荐(0) 编辑
iphone 利用Quartz 2D进行绘图
摘要:1.利用Quartz 2D进行绘图时,可将绘图绘图信息绘制在设备上下文中。详情见demo 阅读全文
posted @ 2011-12-06 14:21 wtq 阅读(229) 评论(0) 推荐(0) 编辑
ipnone CGRectInset 该结构体的应用
摘要:CGRect CGRectInset ( CGRect rect, CGFloat dx, CGFloat dy);该结构体的应用是以原rect为中心,再参考dx,dy,进行缩放或者放大。如图:图中的每一个矩形都是以上一个矩形作为参考矩形。所以下一矩形(比如黄色矩形对绿色矩形来说是下一个矩形)都比上一个矩形要小。具体小多少都是要参照dx和dy来判定的。代码如下:View Code CGContextAddRect(context,currentRect);CGContextDrawPath(context,kCGPathFillStroke);CGRectoriginal=CGRe... 阅读全文
posted @ 2011-12-06 11:46 wtq 阅读(1211) 评论(0) 推荐(0) 编辑
【转载】 iphone CAlayer 教程
摘要:本为摘自:http://www.cnblogs.com/zhw511006/archive/2011/05/31/2064049.html首先要说的是CALayers 是屏幕上的一个具有可见内容的矩形区域,每个UIView都有一个根CALayer,其所有的绘制(视觉效果)都是在这个layer上进行的。(译者注:为验证这点,我写下了如下代码:12345678910UILabel*lable=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 30)];lable.text=@"test";[self.view addSubv 阅读全文
posted @ 2011-12-06 10:09 wtq 阅读(342) 评论(0) 推荐(0) 编辑
iphone 改变按钮的背景颜色
摘要:1:原文摘自:http://www.cnblogs.com/APTX4869/archive/2011/03/10.htmlhttp://www.cocoachina.com/bbs/read.php?tid-48666-keyword-UIButton.html初始设置:UIImage *bgImg1 = [UIImage imageNamed:@"Selected.png"];UIImage *bgImg2 = [UIImage imageNamed:@"Unselected.png"];[btn setImage:bgImg2 forState:U 阅读全文
posted @ 2011-12-06 09:47 wtq 阅读(1036) 评论(0) 推荐(0) 编辑
【转载】 iphone IPhone开源代码 绝对经典!
摘要:原文摘自:http://blog.csdn.net/mkhgg/article/details/6880829扫描wifi信息:http://code.google.com/p/uwecaugmentedrealityproject/http://code.google.com/p/iphone-wireless/条形码扫描:http://zbar.sourceforge.net/iphone/sdkdoc/install.htmltcp/ip的通讯协议:http://code.google.com/p/cocoaasyncsocket/voip/sip:http://code.google. 阅读全文
posted @ 2011-12-05 20:09 wtq 阅读(1333) 评论(0) 推荐(0) 编辑
【转摘】iphone 左右上下划动屏幕切换图片显示
摘要:原文摘自:http://www.cocoachina.com/blog/blog.php?do=bbs&uid=1628&page=8- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ CGFloat PointX = fabsf(FirstPoint.x - SecondPoint.x); if(touchMove == NO) 阅读全文
posted @ 2011-12-05 20:03 wtq 阅读(576) 评论(0) 推荐(0) 编辑
【转发】iphone 有用的图片
摘要:原文摘自:http://www.cocoachina.com/blog/blog.php?do=showone&uid=1628&type=blog&itemid=580发些有用的Iphone icons png图片给大家```````````````````````````````````````````````````````` 阅读全文
posted @ 2011-12-05 20:00 wtq 阅读(190) 评论(0) 推荐(0) 编辑
【转发】 iphone开发随笔,有用的
摘要:1:http://wsqwsq000.iteye.com/blog/12368531.将view设置成圆角首先导入QuartzCore.framework,#import <QuartzCore/QuartzCore.h>然后添加下面两行代码:view.layer.cornerRadius = 8;//圆角
view.layer.masksToBounds = YES;//在所在的层绘制圆角2.把UIColor转换为CGColorUIColor *redColor = [UIColor redColor];CGColor *RedColor = redColor.CGColor;3 阅读全文
posted @ 2011-12-05 19:56 wtq 阅读(297) 评论(0) 推荐(0) 编辑
iphone 图像处理小结
摘要:1.本文摘自:http://blog.csdn.net/mkhgg/article/details/65854021.将一个指定的图形放大或缩小为指定的尺寸,可以试试以下代码-(UIImage*)scaleToSize:(UIImage*)imgsize:(CGSize)size{ //创建一个bitmap的context //并把它设置成为当前正在使用的context UIGraphicsBeginImageContext(size); //绘制改变大小的图片 [imgdrawInRect:CGRectMake(0,0,size.width,size.height)]; //从当前co... 阅读全文
posted @ 2011-12-05 19:08 wtq 阅读(751) 评论(0) 推荐(0) 编辑
iphone UIImageWriteToSavedPhotosAlbum 保存图片
摘要:1http://blog.prosight.me/index.php/tag/uiimagewritetosavedphotosalbum将图片保存在iPhone的相册中byEltonon 十一.16, 2009, underiPhone有时候你的应用需要将应用中的图片保存到用户iPhone或者iTouch的相册中。 可以使用UIKit的这个类方法来完成。123456void UIImageWriteToSavedPhotosAlbum ( UIImage *image, id completionTarget, SEL completionSelector... 阅读全文
posted @ 2011-12-05 15:42 wtq 阅读(8536) 评论(0) 推荐(1) 编辑
iphone 截屏操作
摘要:1本文摘自:http://blog.csdn.net/arthersophy/article/details/5831682利用下面的方法可以截取参数view所代表的界面。通常情况下,我们都能拿到view的指针。所以该方法可以截取程序界面全部或者部分UI.显示的时候,可以利用UIImageView.UIImage* ImageOfView( UIView* view ){ // Takes a snapshot of a view and returns it, can be used for caching a view static BOOL timeIt = NO; double st. 阅读全文
posted @ 2011-12-05 15:28 wtq 阅读(349) 评论(0) 推荐(0) 编辑
iphone 将图片保存到iphone 相片中
摘要:只要两行代码就可以把图片保存到iphone中代码如下: - (IBAction) buttonTest:(id)sender { UIImage *image = img.image; UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil); } 阅读全文
posted @ 2011-12-05 15:01 wtq 阅读(298) 评论(0) 推荐(0) 编辑
iphone 实现截图功能
摘要:本文摘自:http://blog.sina.com.cn/s/blog_6017de810100q7qt.htmliPhone 用户同时按下 Home 和锁屏键就能截屏,但在应用里总不能跳出一行字让用户自己按截屏键。CocoaChina 会员 “bobgreen” 分享的这段代码能实现程序内截屏功能,支持 iPhone 4 Retina 高分屏。UIView *view = [[[[[UIApplication sharedApplication] windows] objectAtIndex:1] subviews] lastObject];//获得某个window的某个subViewNSI 阅读全文
posted @ 2011-12-05 13:52 wtq 阅读(281) 评论(0) 推荐(0) 编辑
iphone iPhone拍照/摄像软件开发实例
摘要:1:本文摘自:http://www.cocoachina.com/iphonedev/sdk/2010/0120/339.html这个App基于lolfriend的源码改写,完全使用官方API。目前还没实现的功能有:替换UIImagePickerController的cameraOverlayView;滤镜。其他效果如图,我的测试环境是3.1.2的虚拟机和3.1.2的iPhone 3GS。如果编译不了的话,请参考一下这个帖子http://www.cocoachina.com/bbs/read.php?tid=9799附件:CameraDemo.zip 阅读全文
posted @ 2011-12-05 13:44 wtq 阅读(218) 评论(0) 推荐(0) 编辑
iphone 应用程序参考库
摘要:1,本文摘自:http://www.apple.com.cn/developer/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/GraphicsandDrawing/GraphicsandDrawing.html#//apple_ref/doc/uid/TP40007072-CH10-SW32 阅读全文
posted @ 2011-12-05 13:37 wtq 阅读(160) 评论(0) 推荐(0) 编辑
iphone 如何实现全屏截图
摘要:本文摘自:http://www.devdiv.com/forum.php?mod=viewthread&tid=58560&highlight=%BD%D8%CD%BC本文参考:http://www.devdiv.com/forum.php?mod=viewthread&tid=31687&highlight=%BD%D8%CD%BCUIGraphicsBeginImageContext(pictureView.bounds.size); [pictureView.layer renderInContext:UIGraphicsGetCurrentContext 阅读全文
posted @ 2011-12-05 11:47 wtq 阅读(1502) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示