• 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

iPhoneアプリで凝ったアニメーションを作るとCALayerを多用するようになりますが、 いくつか現時点では欠けている点があるのでメモしておきます。

  • GLに比べて大分遅い。CALayerのレンダリングは内部的にGLを使っていないようですね。そのかわりアンチエイリアシングがキレイだったりします。
  • 3D transformがrenderInContextできない。ドキュメントでも少し触れられていますが、3Dのtransfromを設定しても renderInContextに反映されないです。
  • contentsをkey frameアニメーションさせる場合に、contentsの遅延読み込みが出来ない。そのため、イメージデータを全部メモリに読み込む必要があり、メモリ消費量が大きい。AVVideoCompositionCoreAnimationToolなどを使うときに困ることになります。

ちなみに、CALayerのcontentsプロパティは id 型の retain なんですが、CGImageRefを指定するとちゃんとCGImageRetainを呼んでいる様子。違和感があります。

posted by Png genki on Wed 28 Jul 2010 at 02:39

iPhoneをLandscape状態にしたときの寸法をメモしておきます。

  • ナビゲーションバーの高さ: 32px
  • statusbar height: 20px
  • バーを除いた高さ 268px
posted by Png genki on Mon 19 Jul 2010 at 20:07

iPhone開発アカウントをもう一個とろうとしてみたのですが、1法人につき1つまでという制限があるようです。

posted by Png genki on Tue 13 Jul 2010 at 18:36

Release設定で、Code Signing IdentityAutomatic Profile Selectorを設定していて、Buildすると上記のようなエラーが出る様です。 どうやら、アイコンサイズ(57x57)やらチェックしてくれるOptionらしい。

Project SettingsのBuild OptionsでValidate Build Productをチェック

"Project - Edit Project Settings - Build - Configuration(Release)"内にあるBuild Optionsの項です。これでwarningは出なくなります。

詳細はこちらから:

Xcode 3.2.2 Validate Built Product - Blog - Use Your Loaf
http://useyourloaf.com/blog/2010/4/3/xcode-322-validate-built-product.html

posted by Png satoko on Tue 13 Jul 2010 at 06:04

iPhone OS 4の対応をしていたら、小さなことにハマってしまったのでメモ。

iPhone SimulatorでiPhone4表示が小さい(320x480)

Hardware - Device - iPhone4にしたのに、普通のiPhoneと同じ大きさで混乱していたら、Window - Scale - 100%にしたらちゃんと640x960で見れました。

xCodeのBuild ResultsでCodeSignとProcessProductPackaging(embedded.mobileprovision)の詳細が見れない

各項目を右クリックExpand All Transcriptsで見る事ができます。

posted by Png satoko on Fri 2 Jul 2010 at 05:09
Contents
CALayerの欠けている機能に関するメモ
Landscape状態の各種寸法メモ
iPhone devアカウントは1法人につき1つまで
[Xcode]【解決】warning: 'The Validate Built Product build setting was not enabled when building for Distribution.'
[iPhone] xCodeでの2つの小さなtips
Comments
瀧内元気: MacOS版は以下にあります * [genki/ViMouse](https://githu... '23-1
KingofSmack: Here also good reads for this mobile applicatio... '14-5
Spencer: You don't have to re-compile it, this version w... '14-4
staiano: Any chance we can get a recompile for 10.9? '14-1
dsjf: https://gist.github.com/6bf1bf2c3cbb5eb6e7a7 これ... '13-1
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ