ios
文章平均质量分 60
hulefei29
我就是我
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
手把手教你怎样转换iPhone高清晰电影
iPhone专用视频转换软件Aimersoft iPhone Video Converter,是一款转为iPhone量身设计的转换软件,功能强大,几乎所有格式都支持。(本教程作者:358488487 来自电玩巴士iPhone论坛)Aimersoft下载地址以下是详细使用教程: 1.安装:下载解压缩后,双击安装,一路OK下来,生成Aimersoft iPhone Vid...2009-10-01 22:24:00 · 492 阅读 · 0 评论 -
iPhone系统常用文件夹位置
iPhone系统常用文件夹位置:1、【/Applications】 常用软件的安装目录2. 【/private /var/ mobile/Media /iphone video Recorder】录像文件存放目录3、【/private /var/ mobile/Media /DCIM】相机拍摄的照片文件存放目录4、【/private/var/ mobile /Media/iTunes_Contr...2009-11-08 17:45:00 · 253 阅读 · 0 评论 -
如何在 Windows上编译Objective-C
Objective-C现在几乎已经变成了苹果的专利了,可以直接在苹果的Xcode上编译Objective-C程序,但是在Windows平台下的编译工具就寥寥无几了,本身这种语言用的人就不是很多。今天在网上突然看到了有人发帖,可以在Windows平台下编译Objective-C,就抱着好奇的心态试了试。没想到,居然成功了,现在就把怎样搭建Objective-C编译平台的经验拿出来和大家分享。1、...原创 2010-02-22 13:25:58 · 226 阅读 · 0 评论 -
Block GCD
https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B9RRE5W4fjYRMmZkMWQ4N2ItYTY2MC00ZWUyLWJhMmEtZTU3MWNiOTVlMjAw&hl=en&authkey=CMad8uQD原创 2011-04-25 11:07:54 · 135 阅读 · 0 评论 -
xcode4的app位置
/Users/用户名/Library/Developer/Xcode/DerivedData/产品名称-fylcrwghjxojxcgaejhixgwinhus/Build/Products/原创 2011-05-16 11:07:06 · 127 阅读 · 0 评论 -
播放音频声音文件
iphone开发中播放声音文件主要使用AVAudioPlayer 类,它的功能非常强大支持播放音频的格式也非常的多,我们可以把它看成一个高级的音乐播放器,它支持的播放格式有■ AAC■ AMR(AdaptiveMulti-Rate, aformatforspeech)■ ALAC(AppleLossless)■ iLBC(internetLowBitrat...原创 2011-08-20 01:30:34 · 156 阅读 · 0 评论 -
iPhone开发小技巧
1、如果在程序中想对某张图片进行处理的话(得到某张图片的一部分)可一用以下代码: UIImage *image = [UIImage imageNamed:filename]; CGImageRef imageRef = image.CGImage; CGRect rect = CGRectMake(origin.x, origin.y ,size.width, size.height); CGI...原创 2011-08-20 23:20:03 · 91 阅读 · 0 评论 -
用CALayer.Mask(遮罩)实现iphone图标的水晶立体效果
昨天打群雄一下打了两个“破敌”,比较空虚,然后想起周末觉得自己应用中的图案都是纯用Path画的平面效果,比较土,就研究了一下如何实现点时尚的效果。最终完成效果如下:而原图效果只是这样: 通过遮罩完成以上效果,代码非常简单,不过需要准备遮罩层要用的alpha通道图片,对于非常非常不美工的我来说,用d版的fireworks搞掂: 但是你并不能直接把这个遮罩蒙在你的图片上...原创 2011-08-22 22:51:52 · 185 阅读 · 0 评论 -
xcode快捷键
其实都是设置里的,整理成文件版,方便搜索可能有些新手刚用mac,不知与windows键对应,现在说明一下,command相当于ms键盘的win键,option相当于alt,键值一样,系统偏好设置里面可以更改。xcode相关:关于xcode 可设偏好设置 command+,清空缓存 可设隐藏xcode command+h隐藏其它 command+option+h显示全部 可设退出x...原创 2010-10-25 16:37:23 · 174 阅读 · 0 评论 -
如何修改"__MyCompanyName__"
XCODE项目默认注释"__MyCompanyName__" , 一个个修改太傻了,网上很多介绍都不是很详细.具体方法: 打开XCODE参数设置文件,一般在USER的Library下,最新的10.7已经隐藏了这个文件夹,要用GO TO FOLDER,(~/Library/Preferences/com.apple.Xcode.plist)可以右键用XCODE打开. 填加一个字典类型的键名:PBXC...原创 2011-08-29 15:34:59 · 228 阅读 · 0 评论 -
iPhone目录文件的作用
当我们越狱过iPhone后,我们便可以拥有访问系统目录的权限了。这样,我们直接通过afc服务进程在电脑上直接访问手机内部文件,可是,内部文件进去后就是典型的UNIX的文件系统了,新手往往一下子摸不着头脑。下面,我就从unix文件系统的关系,来解释一下iphone或itoch中各文件系统的作用。A、【/Applications】这就是常用软件的安装目录,在里面有我们安装的ipa包的解开格式,...原创 2011-05-26 16:38:11 · 200 阅读 · 0 评论 -
iphone simulator 文件路径
iphone/ipod touch app 的开发使用了沙盒,即程序员能访问的一些文件要在自己程序的沙盒之内,一个应用程序的目录除了编译后的程序文件,通常还会有自己的document,tmp目录,可以通过调用api来获取这些路径,然后保存文件。当使用xcode编译执行时,通常会启动一个iphone simulator来执行app,但是有个问题是,每次用simulator启动时,生成的app...原创 2011-05-26 17:24:28 · 268 阅读 · 0 评论 -
如何通过makefile在iphone下创建dylib
首先我要声明下经过测试,第三方的dylib是无法在未越狱的iphone上c成功运行的。写这篇文章也只是为了完善之前的那篇文章。1、创建dylibtest.c 和.h没神马好说的,想写神马就写神马吧。。。这里随便写了个test函数################ dylibtest.h ######################void test(); ####...原创 2011-05-27 10:03:38 · 278 阅读 · 0 评论 -
iPhone游戏开发新手不容错过的资源分享
本帖也是为我自己服务,我也希望获得某些信息指导我如何开发iPhone游戏,同时了解自己应该阅读哪些资料才能熟悉这个领域。深入挖掘互联网之后,我发现了一些有用的东西。我希望在这里同大家分享我的发现,大家也可以参与分享之列,提供自己的探索成果。如果你们希望了解更多有关iPhone游戏开发的内容,以下资源列表不容错过:iPhone——如果你对iPhone一无所知,那么就浏览这个网站。否则...原创 2011-06-01 09:18:39 · 198 阅读 · 0 评论 -
使用Cocos2d框架开发iPhone游戏的方法
移动设备正改变我们工作和与他人互动的关系。新一轮革命正在我们身上发生,人们开始通过移动设备消费更多的数据内容。iPhone应用商店成为手机应用成功和流行的缩影,其中游戏是最热门的类别。在本篇文章中,我将展示如何用Cocos2d框架来制作iPhone游戏。iphone-gamesCocos2d框架Cocos2d是用于构建iPhone游戏的开源框架,是基于iPhone核...原创 2011-06-01 09:19:34 · 181 阅读 · 0 评论 -
iphone simple animation example
An Example Basic Animation CABasicAnimation *theAnimation; // create the animation object, specifying the position property as the key path// the key path is relative to the target animat...原创 2011-06-02 11:00:01 · 145 阅读 · 0 评论 -
第三方SQLITE封装库pldatabase的介绍
pldatabase的网站地址:http://plsqlite.narod.ru/http://code.google.com/p/pldatabase/ 在这里可以下载和查看文档和代码.下面我翻译一下其最简单的入门知识,在项目过程中, 发现这些其实也够用, 但异常处理这些我还没引进来使用.基本使用指南创建一个链接为存在数据库文件打开一个链接:PLSqliteData...原创 2011-06-02 14:49:47 · 163 阅读 · 0 评论 -
使用GH-Unit对iOS应用进行单元测试
单元测试的目的保证代码的正确性支持未来的代码重构基础环境:使用苹果系统的电脑XCodeGH-Unit是一个强大的单元测试框架,由Gabriel Handford开发,使用GH-Unit进行单元测试需要进行一些配置。新建一个项目并添加一个测试目标(Target)我这里新建了一个“Window-based Application”,新建完成后先尝试“Build...原创 2011-06-03 10:43:08 · 102 阅读 · 0 评论 -
iPhone知名第三方框架Three20簡介
Three20是由Facebook所發展的一套iPhone框架,最初的目的是為了建構Facebook的iPhone版應用程式,後來便將framework開放原始碼提供給廣大的iPhone開發者使用。使用Three20的軟體雖然一般各位在使用iPhone軟體的經驗中,對於Three20的存在沒有特別的印象,但是事實上Three20出現在相當多的應用軟體中,像是Facebook、Fli...原创 2011-06-03 11:13:15 · 107 阅读 · 0 评论 -
iphone开源框架
扫描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/...原创 2011-06-04 16:55:10 · 186 阅读 · 0 评论 -
使用OCUnit做单元测试
具体步骤:http://developer.apple.com/tools/unittest.html 但是步骤说明中少了一点,需要在新建的test target中的Run Script添加以下Script:# Run the unit tests in this test bundle."${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTest...原创 2011-06-07 00:12:17 · 123 阅读 · 0 评论 -
iPhone Core Quartz 1- Round Rectangle
- (void)drawRoundRect : (CGContextRef)context { // Drawing with a white stroke color CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0); // And draw with a blue fill color CGContextSetRG...原创 2011-06-07 16:37:27 · 127 阅读 · 0 评论 -
iPhone Core Quartz 2- Curve
代码效果对照图:原创 2011-06-08 10:10:06 · 114 阅读 · 0 评论 -
iPhone保存用户密码的安全方法
类的地址: http://github.com/ldandersen/scifihifi-iphone/tree/master/security作为一名iPhone开发者, 你需要对你的用户安全负责. 请问, 你是怎么保存用户的密码的?直接保存到plist里?加密? AES? DES? 能保证你的代码不被反编译拿到你的加密Key?这也未免太不苹果了吧. 我Google了一下, ...原创 2011-06-08 17:31:30 · 248 阅读 · 0 评论 -
iPhone 时间操作
//获取当前时间NSDateFormatter *nsdf2=[[[NSDateFormatter alloc] init]autorelease]; [nsdf2 setDateStyle:NSDateFormatterShortStyle]; [nsdf2 setDateFormat:@"YYYYMMDDHHmmssSSSS"]; NSString *t2=[nsd...原创 2011-06-08 17:42:36 · 110 阅读 · 0 评论 -
制作iPhone PXL安装包的方法
1.新建一个PXL的文件夹2.在PXL里面新建一个PxlPkg.plist <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1...原创 2011-02-16 10:11:01 · 121 阅读 · 0 评论 -
Finding iPhone Memory Leaks: A “Leaks” Tool Tutorial
I’ve been using Instruments a lot lately as I approach the end of my game development cycle. I’ve found it especially useful for tracking down memory leaks in my game. I figured that since I found I...原创 2011-02-16 16:28:10 · 96 阅读 · 0 评论 -
关于获取documents路径
//Returns the path to the application's Documents directory.// 方法1 iOS4.0版本以上的可以使用该方法获取url- (NSURL *)applicationDocumentsDirectory_New { //Availability: iOS 4.0 and later N...原创 2011-06-10 14:20:59 · 289 阅读 · 0 评论 -
iPhone Game Engine Comparison – Open Source
I’m often asked about which iPhone game engine to use, and I know most people are looking for a free game engine so here is a comparison of the different open source iPhone game engines that actuall...原创 2011-06-11 20:38:52 · 191 阅读 · 0 评论 -
The Commercial iPhone Game Engine Comparison (3D and 2D)
After making my open source iphone game engine comparison post,, I’ve noticed quite a few searches for a comparison of commercial iPhone game engines, so I’ve decided to create this comparison.Ple...原创 2011-06-11 20:39:51 · 185 阅读 · 0 评论 -
包含iphone4在内的icon,default及图片处理方法
以前貌似发现相关尺寸,这次来点详细的,相信不少人用的到。。。。从icon说起命名方法,举例Icon.png 57×57Icon-72.png 72×72Icon-Small.png 29×29Icon-Small-50.png 50×50Icon@2x.png ...原创 2011-02-24 22:57:33 · 102 阅读 · 0 评论 -
List of Language Codes
CodeLanguageLanguage (native)daDanishDanskdeGermanDeutschelGreekελληνικάenEnglishEnglishesSpanishEspañolfrFrenchFrançaisheHebrewעברית...原创 2011-02-28 11:51:12 · 8234 阅读 · 0 评论 -
安装cocos2d后无模板的解决方法
很多新手按照教程,将文件解压,再将里面的install-templates.sh脚本,拖到Terminal.app里,然后在最前面添加sudo再回车就行了,提示输入密码,输入密码后,提示一些失败信息。打开Xcode新建一个工程,发现根本没有cocos2d的工程模板。 经过谷歌搜索后方得知,必须在Terminal.app里进入刚才cocos2d解压的目录后,再使用sudo。不要提问...原创 2011-06-19 15:44:32 · 214 阅读 · 0 评论 -
iPhone Dev Sessions: Making a Splash Screen
All too often an iPhone application’s launch sequence is an overlooked detail. The most common approach is to misuse the provided Default.png file as a splash screen. As it turns out, this detailin...原创 2011-03-01 16:32:34 · 167 阅读 · 0 评论 -
Object-C命名规范
1.参考苹果的文档 “Coding Guidelines for Cocoa”http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html%23//apple_ref/doc/uid/10000146-SW12.Google的...原创 2011-03-09 09:46:15 · 258 阅读 · 0 评论 -
ViewController加载过程
Loading a view into memory Unloading a view from memory原创 2010-11-09 21:56:14 · 212 阅读 · 0 评论 -
UINavigationBar
// add our custom image button as the nav bar's custom right viewUIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"email.png"] style:UIBarButtonItemStyle...原创 2010-11-25 10:58:25 · 110 阅读 · 0 评论 -
[iOS] Popover API for iPhone
一个ipad的上popover的效果 下载地址:http://download.csdn.net/source/3424079github : https://github.com/werner77/WEPopover原创 2011-07-07 09:20:13 · 140 阅读 · 0 评论 -
[IOS]Coverflo效果
经典的Coverf效果 下载地址:http://d.download.csdn.net/down/3414323/hulefei29原创 2011-07-07 09:35:07 · 122 阅读 · 0 评论 -
将UIView转成UIImage
#import “QuartzCore/QuartzCore.h”//把UIView 转换成图片-(UIImage *)getImageFromView:(UIView *)view{ UIGraphicsBeginImageContext(view.bounds.size); [view.layer renderInContext:UIGra...原创 2011-09-26 14:17:20 · 173 阅读 · 0 评论
分享