タグ

2011年12月24日のブックマーク (4件)

  • Exifなどのメタデータを自由に操作するにはどうするか - プログラミングノート

    Best Albumの開発でもっとも苦しめられたと言っても過言ではないのがExif操作。iOS4以降で自由にいじれるようになったとはいえ、あまりまとまった資料がなくて大変だったのでこれから作る人のために。(iOS4.2で動作確認をしています) ライブラリ ここでは下記のフレームワークを利用します。 #import <AssetsLibrary/AssetsLibrary.h> #import <ImageIO/ImageIO.h> フォトライブラリへの保存 ImagePickerControllerで撮影を行ってから保存する場合、通常の方法ではExif情報が保存されません。Exifを保存したい場合はiOS4.1から追加されたAssetsLibraryのメソッドを利用します。 まずはカメラ(or フォトライブラリ)の起動 UIImagePickerController *imgPicker

    Exifなどのメタデータを自由に操作するにはどうするか - プログラミングノート
    kent013
    kent013 2011/12/24
  • UIImagePickerController and extracting EXIF data from existing photos

    It's well known that UIImagePickerController doesn't return the metadata of the photo after selection. However, a couple of apps in the app store (Mobile Fotos, PixelPipe) seem to be able to read the original files and the EXIF data stored within them, enabling the app to extract the geodata from the selected photo. They seem to do this by reading the original file from the /private/var/mobile/Med

    UIImagePickerController and extracting EXIF data from existing photos
    kent013
    kent013 2011/12/24
    UIImagePickerでとった写真にGPSのEXIFをつける.
  • Concurrent Operations Demystified - Dave Dribin's Blog

    NSOperation and NSOperationQueue are available on Leopard or the iPhone to help you parallelize your code. The idea is that if you have code that takes a long time to execute, you create an NSOperation subclass, override main, and put your long running code in there: @implementation CalculatePiOperation - (void)main { // Calculate PI to 1,000,000 digits } @end To execute an operation, you typicall

    kent013
    kent013 2011/12/24
    NSOperation周りの話.
  • [iOS5] ARC : Autorelease, キャスト, 環境設定 | Natsu note

    これまでの記事はこちら: [iOS5] ARC (Automatic Reference Counting) : Overview [iOS5] ARC : プロパティ属性と使い方 [iOS5] ARC : Outletにはweakプロパティを使おう [iOS5] ARC : 循環参照 ARCまとめの最終回はAutoreleaseとキャストについてです。また、最後で簡単にですが、Xcodeの環境設定についても触れます。 Autorelease ARC環境下では、これまでのNSAutoreleasePoolは使えません。そうは言っても、別にAutorelease環境がなくなってしまったわけではなく、作法が少し変わったのですね。 まずは、参考までにmain.mを見てみましょう。 非ARC(マニュアルメモリ管理) int main(int argc, char *argv[]) { NSAuto

    kent013
    kent013 2011/12/24
    __bridgeキャストの存在を今知った.