2011年12月20日
摘要: 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 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 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下是不显示隐藏文件的,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 阅读(36888) 评论(1) 推荐(0) 编辑
摘要: 原文摘自: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 阅读(4121) 评论(0) 推荐(1) 编辑
摘要: 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 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(814) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(358) 评论(0) 推荐(0) 编辑