2014/02/01 @ GREE
As a local variable: returnType (^blockName)(parameterTypes) = ^returnType(parameters) {...}; As a property: @property (nonatomic, copy, nullability) returnType (^blockName)(parameterTypes); As a method parameter: - (void)someMethodThatTakesABlock:(returnType (^nullability)(parameterTypes))blockName;
Saying farewell to Pixate. When we launched Pixate, our mission was to change the way mobile apps were prototyped. We joined Google just over a year ago to continue our mission, and to pursue a broader vision of changing the way products were designed and built. While a lot of the ideas we’ve been developing could work inside the Pixate framework, we believe we can have a larger impact if we move
The iOS framework that grows only as fast as its documentation Fork Nimbus on GitHub - Follow NimbusKit on Twitter 1.2.1 Documentation Peruse documentation for the most recent stable cut of Nimbus from February 21, 2014. docs. » Nimbus is a toolkit for experienced iOS software designers. It provides well-documented, modular components that solve a number of common iOS software requirements. This i
Mountain Lion発表とともにリリースされたXcode4.4。OSX Lionでも使える様になっています。Xcode4.4から、llvm (コンパイラ)のバージョンが4.0になっています。 それによってObjective-Cの書き方にかなりの改善が加えられたので、それを簡単にまとめておきたいと思います。これらの改善は、iOS6に関係なく動作するので、いま作っている、iOS5用のコードにも使用出来ます。 synthesize by default コンパイラが@synthesizeを補完してくれる様になったため、基本的な状況では、@synthesizeを書かなくてよくなりました。また、synthesizeされる相手のivarも、同名の変数ではなくて、アンダーバーを最初に付けた物がデフォルトとなります。これまで議論されて来たことがappleのコンパイラによって、これからは定義されている
Русский анал во всей его красе можно найти на данном ресурсе! Переходите по ссылке и наслаждайтесь качественным видео без рекламы.
前回、mixi API を使ってmixiボイスに投稿しました。 今度はフォト付きつぶやきを投稿したかったのですが、一筋縄ではいかなくてしばらくハマっておりました。なんとかMac上のアプリとiPhone実機で送ることができたのでまとめておきます。 リクエストの作成には、前回参考にしたPythonのコードと実際のパケットをにらめっこしながらやりましたが、もっとスマートな方法があれば教えてほしいです。 iPhoneアプリ開発記(9):Objective-C & OAuth で mixi API にアクセスする コードはgithubにおいてあります https://github.com/kaorun55/iOSSandbox/tree/master/MixiOAuthSample フォト付きつぶやきの送り方 フォト付きつぶやきを送る方法は下記の2種類あるようで、今回は multiple/form-
Friday, January 21, 2011 データの保存 (3) - ファイルやディレクトリの操作 Label: iOS, Objective-C iPhoneアプリ開発において、データを保存したい場合はどうすればいいのだろう? 今回は様々なデータ保存の手法を取り上げてみます。 バックナンバー 設定などの保存 ホームディレクトリとファイルパス ファイルやディレクトリの操作 いろいろなデータのファイル保存 プロパティリストの利用 ローレベルなファイルアクセス ファイルやディレクトリの操作 ファイルやディレクトリの操作にはNSFileManagerを利用します。 NSFileManagerはファイルやディレクトリの作成・削除・移動・複製・一覧や、属性の取得や編集、シンボリックリンクの操作など様々なことを行えます。 この記事の内容 ディレクトリの作成 ファイルやディレクトリの削除 ファイル
Copyright (C) iPhoneアプリ開発備忘録 All rights reserved. ブログ内で記したコード、内容の正確性は保証いたしません。 記載内容を実装したことにより発生した不具合・損害等の責任は一切負いません。 UITabBarController に UINavigationController を組み込む タブ画面(UITabBarController)の下層にナビゲーション画面(UINavigationController)を配置するという形になる。 従って、既にNavigation-based Applicationベースでアプリケーションを開発している場合、新たにTab Bar Applicationで開発しなおす必要がある。 但し、既にNavigation-based Applicationベースで開発したアプリケーションの大部分は流用することができる。
非同期処理がわかりやすいサイトまとめ NSOperationを試してみた - ちくわプログラマにっき http://d.hatena.ne.jp/craccho/20100711/1278837199 iOS4時代の非同期HTTP通信 - すぎゃーんメモ 非同期通信で画像をロードする方法について - プログラミングノート UIImageをサーバ経由で取得する方法 | コノルブログ A-Liaison BLOG: CS193P 11日目 非同期処理をやってみる iPhone OS4 における非同期処理の挙動変更にまつわる試行錯誤 - 個人的メモ 番外編 iPhoneアプリ開発、その(126) ドラクエだって作れるんだぜ | テン*シー*シー
iPhone / iPad のアプリを作っていると、頻繁に登場するのが「外部 API を HTTP 経由で実行して結果を XML / JSON で取得し、それを解析してモデルクラスに変換してデータ構造に突っ込む」パターンです。当然たくさんの先人の皆様がすでに効率的なライブラリを作成されているのですが、あえて私も車輪の再発明に挑戦してみました。今回使用したのは NSOperation クラスです。 NSURLConnection クラスとデリゲートを使うだけでも簡単に非同期通信を実現することができるのですが、さらに NSOperation クラスと NSOperationQueue を使うことでさらにタスク間の依存関係を簡単に設定できたり、タスクの並列度を簡単に制御したりできそうなので、挑戦してみました。 2010/12/29追加: 発展版をASIHTTPRequestを使って作成してみまし
ICU User Guide This User Guide provides information on i18n topics for which ICU has services, and includes details that go beyond the C, C++, and Java API docs (and avoids some duplication between them). You may want to start with the Introduction to ICU or browse the navigation bar for a specific topic. This is the new home of the User Guide (since 2020 August).
@iphone_dev_jp ツールバーとかタブバーによくある「現在地を表示」のボタン画像(あのライフルのスコープみたいなアイコンの)はシステム標準でないですよね。自分で作らないとダメなんですかね。 takoyaki0330 on Twitter: "@iphone_dev_jp ツールバーとかタブバーによくある「現在地を表示」のボタン画像(あのライフルのスコープみたいなアイコンの)はシステム標準でないですよね。自分で作らないとダメなんですかね。" 上記の「現在地を表示」ボタンに限らず、Safari の「戻る」ボタンや、写真.app の「ゴミ箱」ボタンなど、標準アプリで使われているアイコンなどはすべて提供されているわけではありません。 実はそれらのアイコンは非公開ではありますが API に存在します。 UIBarButtonSystemItem に 100 〜 110 までの値を直接指定す
XCodeを開きます。新しいファイルを追加します。これは、タブバーの中の各タブ内に配置するビューとなります。 UIViewControllerのサブクラスを選択肢、オプションのチェックボックスである、UITableViewControllerとXIBファイル作成のチェックを入れて作成完了します。 Page1Controllerとしました。 3つのファイルが作成されています。(Page1Controller.h , m , xib) Page1Controller.hを開きます。中身に表示する用に配列itemsの宣言をします。 Page1Controllerの実装クラスを開きます。itemsの使用宣言をして、ロード後の初期処理関数内で配列の中身を入れます。 他にも関数を記述する必要がありますが、ひな形が用意されていますので部分的に修正します。 まずは、テーブルに表示するレコード数を返す関数(
こんにちは、iPhone大好き橋本です。 今日はiPhoneアプリの作成に関する「こんなときどうするの??」という疑問にお答えするべく、小技をいくつか紹介したいと思います。 1. 文字サイズに合わせてUILabelのサイズを変えたい。 UILabelを作成するときに、Labelに表示する文字によってUILabelのサイズを変えたいということ無いですか??ただ、UILabelを作成するときはframeのサイズを指定しなきゃいけませんよね。 こんなとき、どうするの?? そんなときには、UILabelにこんなカテゴリを書いちゃいましょ。 @interface UILabel (resize) - (void) resizeWithPoint: (CGPoint)point; - (id) initWithText:(NSString *)text andFont:(UIFont *)font;
iPhone SDK にて、基本的に Interface Builder を使わないということを前提にして、UITabbar と UINavigation を共存させるにはどうすればよいかと。 Google や Yahoo! で調べてもヒットするのは、Interface Builder を使っている説明ばかりなので、自力でなんとかするしかないのかな。 ってことでやってみた。 TableViewController と ViewController02 のファイルは事前に作成しておいて。 AppDelegate.h で UIViewController *rootController; AppDelegate.m で #import "TableViewController.h" #import "ViewController02.h" ・ ・ ・ window = [[UIWindow a
※2013/06/04 追記:今はARCの時代です。autoreleaseとかで悩んでないでARC使いましょう。過去のソースのメンテとかしてる人は頑張れ autorelease をケチらずに使うべきなんだということにようやく気づいた、Objective-C 初心者の私が Google Objective-C Style Guide を読みつつ思考垂れ流し。 Google Objective-Cスタイルガイド 日本語訳 Google Objective-C Style Guide 生成時に autorelease するのが望ましい 一時的なオブジェクトを新しく生成するときには、そのメソッドの後ろの方で個別に release するのではなく、オブジェクトの生成と同じ行で autorelease すること。 http://www.textdrop.net/google-styleguide-ja
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く