iphone
DragonCheng
这个作者很懒,什么都没留下…
展开
-
iPhone开发step by step
这篇文章将在我的使用中逐步完善1: 开发环境准备有两种开发方法,一种是采用官方,另一种就是非官方.官方的一般要求是MAC系统,而非官方可以在MAC,LINUX和Windows下均可.本文只介绍官方方法.请到http://developer.apple.com/注册一个Apple ID(免费的),然后下载最新的SDK 从目前我实际操作结果看,,如果IP或者IT是2.x的,原创 2009-08-07 10:18:00 · 1545 阅读 · 0 评论 -
cocos2d-x添加广告条(IOS and Android)
1: IOS--iAdsIOS下比较简单,加入storekit,添加三行代码就成功了(摘自 @冬天的林 新浪微博)2:Android--AdmobAndroi下陷阱较多。我按照网上的教程还是遇到了一些问题。下面大多摘录自http://www.pin5i.com/showtopic-admob-android-tutorial.html。比较特殊的地方用蓝色原创 2011-11-02 10:24:38 · 16389 阅读 · 11 评论 -
Piglets Games
Piglets in a quiet village, happy and harmonious life. Suddenly one day a group of aliens invaded Earth, into the piglets villages.In order to defend the homeland, the piglets resist, in all weath原创 2013-08-17 14:21:12 · 1441 阅读 · 0 评论 -
xcode4.x修改工程名称
1:按照下图打开2:在prject name处修改想要的名称,然后回车,则会出现下面窗口:点击rename,即可3:修改scheme的名称,按照上述方法修改后,如下图,选择manage scheme,然后选择添加scheme即可另:app打包文件中最好不要有与app名称一样的目录,这样可能会有编译错误原创 2012-03-18 23:46:01 · 3264 阅读 · 0 评论 -
复制xcode4工程
http://ipaddevzone.com/cs/howto-duplicaterename-target-xcode4Howto duplicate/rename target in XCode4Thu, 10/20/2011 - 13:17 — rootselect project in Navigator panelselect Ta转载 2012-03-18 23:47:11 · 1135 阅读 · 0 评论 -
IOS5下 UITabBarController切换时异常问题
我在5.0前的版本用UITabBarController一切正常,但当升级到5.0后,切换UITabBarController,则直接报异常:Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller: should have原创 2012-03-08 15:06:48 · 3987 阅读 · 0 评论 -
Some of my experiences for cocos2d-x+lua
I recently submitted an IOS application(IQ Pyramid), which is based on cocos2d-x(http://www.cocos2d-x.org/ ), most of which code is written原创 2011-10-04 11:33:42 · 19755 阅读 · 6 评论 -
iphone应用程序名国际化
第一步:在项目的Resources里新增一个strings文件名称叫InfoPlist.strings第二步:在xcode中选中InfoPlist.strings, 按照下图所示打开隐藏窗口看到右侧的Localizations了吧,点击下面的+按钮,添加中原创 2011-08-19 22:41:21 · 8146 阅读 · 1 评论 -
简单实现UIActivityIndicatorView上添加文字
- (void)webViewDidStartLoad:(UIWebView *)webView{ if (myAlert==nil){ myAlert = [[UIAlertView alloc] initWithTitle:nil转载 2011-09-16 11:13:23 · 5922 阅读 · 0 评论 -
(Xcode)CSSMERR_TP_NOT_TRUSTED
今天将xcode环境破坏了,搞了一天啊,一直被CSSMERR_TP_NOT_TRUSTED 错误所困扰。最好终于查到解决办法Xcode iOS真机调试出现Command /usr/bin/codesign failed with exit co原创 2011-08-18 16:15:49 · 4075 阅读 · 0 评论 -
出现“Xcode could not find a valid private-key/...”一种解决办法
今天新增加了一个app id,生成了相应的privisioning profile文件,download安装完毕后,在Organizer显示为“Xcode could not find a valid private-key/...”,同时在building settings中也原创 2011-09-05 14:58:28 · 3431 阅读 · 0 评论 -
iphone, iphone4, ipad 图标和背景图片问题
比如iphone3 下用一张图片叫:sprite.png那么iphone4下如果想获得高清的,可再加一张2倍大小的 sprite@2x.png.(cocos2d下用sprite-hd.png)想同时在ipad下用,那么加一张适合ipad大小的图片,图片名自己取,然后在程序里用代码转载 2011-07-19 14:35:25 · 5694 阅读 · 0 评论 -
iphone开发:ipa打包
编译完了的程序是HelloiPad.app文件夹,我们需要制作成ipa安装包,方便安装在iPad上。 第一步,新建一个文件夹,名字任意。找一个不大于500*500的jpg图片,改名为:iTunesArtwork,注意不能有后缀名。 第二步,建立一个文件夹,名为:Payload,把刚才编译的HelloiPad.app拷贝到这个文件夹里面。 第三部,修改app里面的Info.plist文件,windows下可以用Pledit.exe编辑,在节点里面加入: SignerIdentity Apple iP原创 2011-04-21 02:34:00 · 4949 阅读 · 1 评论 -
[转]Iphone 开发小技巧
http://www.xffox.com/blog/iphone-%E5%BC%80%E5%8F%91%E5%B0%8F%E6%8A%80%E5%B7%A7 Iphone 开发小技巧 1, 如何在程序图标上显示数字? Answer: 在程序退出或者改变时修改[UIApplication sharedApplication].applicationIconBadgeNumber的值即可当你设置数值为0时将会隐藏图标数字。默认是0 2, 如何改变导航条的背景颜色? Answer: 如果时在ViewContr原创 2011-04-21 17:05:00 · 3041 阅读 · 0 评论 -
如何使用tabbar和navigationController时调用viewWillAppear
采用如下方式: App—>RootViewController—>UINavigationController—>UIViewController 发现UIViewController接收不到viewWillAppear相关的四个函数。 经过多次试验,发现如下方法,可以解决: 在RootViewController的Init中加入如下代码(红色字体) tabBarController.viewControllers = [NSArray arrayWithObjects:tabNav1,ta原创 2011-03-16 17:01:00 · 6231 阅读 · 1 评论 -
编译在iphone下的freetype
原始URL: http://www.alfredrossi.com/?p=73When I was first looking into building FreeType for the iPhone I noticed that there were a lot of people asking questions on if this could be done and how转载 2009-11-09 16:22:00 · 3861 阅读 · 0 评论 -
aumenu在XCode(MacOS/IPhone)下的编译
1:编译XCode中将SDL,SDL_image,SDL_net(或者在网上下载),加入了SDL_image,必须加入MobileCoreServices.framework2:将SDL,SDL_image,SDL_net下的build/Development目录拷贝到~/Libary/Frameworks3:auogr/gdal/cpl_config.h文件在MAC和windows下不同原创 2009-11-05 09:35:00 · 2835 阅读 · 9 评论 -
luajit2.1 iOS编译64bit以及通用库
苹果要求老的app需要在6月份后支持64位,新的app从2.1开始就必须支持64bit。由于我们用了luajit,而luajit2.0.x版本只支持32bit。在2.1版本开始支持64bit了,但目前只是alpha版本。下面的luajit库编译后支持arm64,armv7和模拟器。即一个库支持64bit编译的所有cpu,不需要针对新老iphone做特殊处理。下载LuaJ原创 2015-02-04 09:52:27 · 20521 阅读 · 4 评论