2011年2月13日日曜日

UIPrintInteractionControllerDelegate Protocol Reference


Conforms to
Framework
/System/Library/Frameworks/UIKit.framework
Availability
Available in iOS 4.2 and later.
Companion guide
Declared in
UIPrintInteractionController.h

Overview

UIPrintInteractionControllerDelegate プロトコルは UIPrintInteractionController のデリゲートにより実装されている。
UIPrintInteractionController は多くのオプションタスクを実行するためのインスタンスを共有する。
もしアプリケーションがコンテンツのサイズのための特別な要件があるならば、printInteractionController:choosePaper: で実装できる。
printInteractionController:choosePaper:は、UIPrintPaper オブジェクトを返すため、 プリントジョブのために使うページサイズとプリントエリアを包含する。
もし、もっと多くのプリントオブションの表現の制御を必要とするならば、デリゲートはprintInteractionControllerParentViewController:.の実装においてプリントオプションのビューを持つビューコントローラを返す。
デリゲートは、プリントのユーザインタフェースが表示されたときと終了したとき、またプリントジョブが始まったときと終ったときに動作するメソッドを実装できる。

Instance Methods


printInteractionController:choosePaper:

Asks the delegate for an object encapsulating the paper size and printing area to use for the print job.
- (UIPrintPaper *)printInteractionController:(UIPrintInteractionController*)printInteractionController choosePaper:(NSArray *)paperList
Parameters
printInteractionController
The shared instance of UIPrintInteractionController that is managing the print job.
paperList
An array of UIPrintPaper objects that represent combinations of paper sizes and imageable areas supported by the selected printer.
Return Value
UIPrintPaper object representing both the paper size and imageable area (or printable rectangle) to use for the print job. If you return nil, a UIPrintPaper encapsulating the default paper size and printable rectangle is used.
Discussion
This method is intended for applications (typically document-based) that have a notion of distinct paper sizes. The delegate can examine the objects in paperList to locate the paper size and printable rectangle combination that is best suited for its needs and return the encapsulating UIPrintPaper object. Or it can call thebestPaperForPageSize:withPapersFromArray: class method of the UIPrintPaper class, passing in a specific page size (typically the document size), and return the object returned by that method.
Availability
  • Available in iOS 4.2 and later.
See Also
Declared In
UIPrintInteractionController.h

printInteractionControllerDidDismissPrinterOptions:

Tells the delegate that the printer user interface is being dismissed.
- (void)printInteractionControllerDidDismissPrinterOptions:(UIPrintInteractionController*)printInteractionController
Parameters
printInteractionController
The shared instance of UIPrintInteractionController that is managing the print job.
Discussion
This message is sent both when the user taps Print on the printing-options view and when the user dismisses the view by tapping outside it.
Availability
  • Available in iOS 4.2 and later.
Declared In
UIPrintInteractionController.h

printInteractionControllerDidFinishJob:

Tells the delegate that the print job has ended.
- (void)printInteractionControllerDidFinishJob:(UIPrintInteractionController*)printInteractionController
Parameters
printInteractionController
The shared instance of UIPrintInteractionController that is managing the print job.
Discussion
You can implement this method to do clean-up tasks related to the print job. This method is called after the last page of the print job is generated but before the completion handler (a block handler of typeUIPrintInteractionCompletionHandler) is called.
Availability
  • Available in iOS 4.2 and later.
Declared In
UIPrintInteractionController.h

printInteractionControllerDidPresentPrinterOptions:

Tells the delegate that the printing-options user interface has just been presented.
- (void)printInteractionControllerDidPresentPrinterOptions:(UIPrintInteractionController*)printInteractionController
Parameters
printInteractionController
The shared instance of UIPrintInteractionController that is managing the print job.
Availability
  • Available in iOS 4.2 and later.
Declared In
UIPrintInteractionController.h

printInteractionControllerParentViewController:

Returns a parent view controller for managing the printing-options view.
- (UIViewController*)printInteractionControllerParentViewController:(UIPrintInteractionController*)printInteractionController
Parameters
printInteractionController
The shared instance of UIPrintInteractionController that is managing the print job.
Return Value
The view controller that is to be the parent of the print-interaction controller managing the printing-options view. Return nil for the standard presentation behavior.
Discussion
This method allows an application to present the print-options view from a view controller of their own choosing. The parent view controller returned must be a UIViewController object, such as a UINavigationController object or a generic view controller. A common strategy for embedding is to create a UINavigationController object as the content view controller (contentViewController property) of a UIPopoverController object and return that. UIKit can push the returned view controller onto the stack if its parent is a navigation controller or present it modally if it isn’t.
This method is invoked in any of the present... methods of the UIPrintInteractionController class (for example, presentAnimated:completionHandler:).
Availability
  • Available in iOS 4.2 and later.
Declared In
UIPrintInteractionController.h

printInteractionControllerWillDismissPrinterOptions:

Tells the delegate that the printing-options user interface will be dismissed.
- (void)printInteractionControllerWillDismissPrinterOptions:(UIPrintInteractionController*)printInteractionController
Parameters
printInteractionController
The shared instance of UIPrintInteractionController that is managing the print job.
Availability
  • Available in iOS 4.2 and later.
Declared In
UIPrintInteractionController.h

printInteractionControllerWillPresentPrinterOptions:

Tells the delegate that the printing-options user interface is about to be displayed.
- (void)printInteractionControllerWillPresentPrinterOptions:(UIPrintInteractionController*)printInteractionController
Parameters
printInteractionController
The shared instance of UIPrintInteractionController that is managing the print job.
Availability
  • Available in iOS 4.2 and later.
Declared In
UIPrintInteractionController.h

printInteractionControllerWillStartJob:

Tells the delegate that the print job is about to start.
- (void)printInteractionControllerWillStartJob:(UIPrintInteractionController*)printInteractionController
Parameters
printInteractionController
The shared instance of UIPrintInteractionController that is managing the print job.
Discussion
You can implement this method to do set-up tasks related to the print job. For example, an application that needs to do intensive rendering could implement this method to pause animations. This method is called before drawing begins but after the printing user interface is dismissed.
Availability
  • Available in iOS 4.2 and later.
Declared In
UIPrintInteractionController.h

2011年2月11日金曜日

巻き紙電卓の売り上げが日米逆転しました。

本日は米国からのダウンロードが日本を上回り、はじめて日本の売り上げが1位ではなくなりました。

このままあがってくれるといいけどなぁ。

2011年2月6日日曜日

六次の隔たり

六字の隔たりとは、ソーシャルネットワークを通じた宣伝/社会現象発生の基礎理論となるもので、世界中の人々と6人を介せば間接的な知り合いになれるというものです。もっとも44人の友人がいるという前提だそうで、そんなにはいないかなー、という感じです(フォロワーと友人は違うしねー)。

六次の隔たり(ろくじのへだたり、Six Degrees of Separation)とは、人は自分の知り合いを6人以上介すと世界中の人々と間接的な知り合いになれる、という仮説で、多くの人数からなる世界が比較的少ない人数を介して繋がるスモール・ワールド現象の一例とされる。SNSに代表されるいくつかのネットワークサービスはこの仮説が下地になっている。
この仮説は後述のスタンレー・ミルグラムの実験を裏づけとして大きく広まったが、それ以前から文学作品などを通じて古くから知られていた。この仮説を描いた最古の作品はハンガリーの文学者フリジェシュ・カリンティによる1929年の小説『鎖』とされているが[1]、「六次の隔たり」という名称は、劇作家ジョン・グエアの戯曲に由来する。この戯曲は後に『私に近い6人の他人』(原題:Six Degrees of Separation)として映画化された。

Wikiサイト

2011年1月29日土曜日

講演でわかったジャパネットたかた社長のハイテンションの理由

iPhoneアプリの対応にもとても参考になります。

http://n-styles.com/main/archives/2011/01/29-024500.php

2011年1月23日日曜日

iOS既存プロジェクト、ソースの活用方法

開発用のメモです。既存プロジェクト/ソースを活用し、有料/無料App等を生成する方法には、以下の方法があるようです。


1.プロジェクトを複製して利用する場合
・「プロジェクト」メニューの上から3つ目、「名称変更」を行う。
そうすると、関連の
・xcodeproj名
・prefix.pch名
・info.plist名
・その他もろもろ
全部一発で置換してくれる。



2.複数のターゲットを作成する場合
ターゲットを複製し、一方のビルド設定のプリプロセッサマクロに定数定義し、 #ifdef で振り分けるといいようです。詳しくはipone SDK開発のレシピを参照
http://astore.amazon.co.jp/taizoy0725-22?_encoding=UTF8&node=8

2011年1月19日水曜日

巻き紙電卓 日本のAppleストアで総合675位に

プロモーションビデオ作成後、巻き紙電卓 PRO Evolutionは、お陰さまで総合675位になりました!!
無料開放後の最高のランクです。やったね!

2011年1月15日土曜日

巻き紙電卓 米国Appleストアで109位!!


巻き紙電卓が、米国Appleストア(ファイナンス部門)でなんと109位になりましたので、記念撮影。維持いてくれるといいけどなぁ・・