标签: iPhone
Icon for iOS
App Store Icon
- 512x512 (scaled down to 175x175 for display in the store)
Application Icon
- 114x114 (iPhone 4)
- 57x57 (older iPhones)
- 72x72 (iPad)
Spotlight Search Results and Settings Icon
- 58x58 (iPhone 4)
- 50x50 (Spotlight results for iPad)
- 29x29 (settings for iPad and older iPhones)
Document Icon
This is a new icon type in iOS 4. It’s used if your app creates a custom document type. The iPad uses the document icon in two different sizes.
- 320x320 (iPad)
- 64x64 (iPad)
- 44x58 (iPhone 4)
- 22x29 (older iPhones)
Core Data 修改 Model 出错
问题描述:这几天在做Red Frog,使用了Core Data。修改了.xdatamodel,程序就莫名跳出。
问题分析:因为是iOS 3.0开始才有的,我的《iPhone开发基础教程》 中还没有。借了vin的《iPhone开发基础教程3》看了下,还是没找到解决方法。
问题解决:设置断点一步一步跟踪,发现是与代码无关。然后就想倒是不是数据库结构改了,导致原来版本的数据库不能用。把模拟器上的程序删了,再调试,一切ok了。
Unity3D
.app文件打包.ipa
mkdir Payload
mv program.app Payload
zip -r ~/Desktop/program.ipa Payload
ipa结构:
-iTunesArtwork(图片文件,去掉扩展名)
-Payload(目录,注意大小写)
--xxx.app(app文件)
iProcessing
iProcessing is an open programming framework to help people develop native iPhone applications using the Processing language.
关于convert Flash to iPhone or iPad
一直有人说flash直接能转成iPhone或iPad,最近vin也说可以。
在此,再次说明以下,flash转iOs是可以的,不过只限于简单的程序。比如一个正方形上下动动什么的。如果像现在iPhone上的游戏这么复杂的,都不行。如果flash library里的东西比较多,那么Flash CS5 publish的时候会当掉。
以下是CS5转iPhone的官方方法:
http://help.adobe.com/en_US/as3/iphone/WS789ea67d3e73a8b2-240138de1243a7725e7-8000.html
====================================
还有一个第三方的插件,但是之前我试了无效。最近出来新版本:ELIPS Studio 4,最近测试了一下。此插件号称可以把flash转成Xcode项目,我测试下来确实可以转换,但是用Xcode打开发布就会出现错误,丢失文件,而且里面的架构已经不是iPhone的,估计能行也有性能上的隐患。
在这里给出此插件连接:http://developer.openplug.com/
如有发布成功的兄弟请通知我:)
free iOS TUIO server have no one
最近在研究iPhone与flash的互动,准备通过擅长的TUIO协议,结果发现竟然没有开源的TUIO server library for iOS,哎。。。看来只能自己动手,丰衣足食了。
Using standard CPP for iOS development
问题描述:
今天在研究iPad与flash通讯。TUIO库使用标准C++(.cpp),而iPad使用OC(.m)。一调用TUIO类库就报错。
问题分析:
TUIO放入解决方案,不调用TUIO库中的内容不报错,一调用就报错。说明说连接问题,或者是不能这样调用。
问题解决:
把所有.m文件改为.mm后缀,使其变为Objective-C++文件。
一切ok了。
函数返回值为枚举类型引起的错误
问题描述:
今天,做Denizen联手拼图iPad版,- (PlateOrientation)orientationRight读取属性函数中的return [self convertAngleToOrientation:_angleRight];报错:error: incompatible types in return
问题分析:
拆分 return [self convertAngleToOrientation:_angleRight];变为:
PlateOrientation orientation=[self convertAngleToOrientation:_angleRight];
return orientation;
继续报错: error: incompatible types in assignment
原来问题出在 [self convertAngleToOrientation:_angleRight]上,这个应该返回enum的函数,用枚举接受其值却报错。
问题解决:
enum总是uint的,先用uint接住再转成enum:
uint uintOrientation=[self convertAngleToOrientation:_angleRight];
PlateOrientation orientation=uintOrientation;
return orientation;
PS:调用函数原型:
- (PlateOrientation)convertAngleToOrientation: (uint)vAngle
