忍者ブログ
2024 / 09
≪ 2024 / 081 2 3 4 5 6 78 9 10 11 12 13 1415 16 17 18 19 20 2122 23 24 25 26 27 2829 30 2024 / 10 ≫

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。



Reference マニュアルの見方がいまいちわからないんだよなぁ・・・

いきなり見てもわからないので、今までやってきた Class を逆引きしてちょっと読み解いてみる。


Table View の section の設定をやるとこを Reference マニュアル で逆引きしてみる。
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 3;
}


numberOfSectionsInTableView:

Asks the data source to return the number of sections in the table view.

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

Parameters

tableView

An object representing the table view requesting this information.

Return Value
The number of sections in tableView. The default value is 1.

Availability
Available in iPhone OS 2.0 and later.

See Also
– tableView:numberOfRowsInSection:

Declared In
UITableView.h

実際のプログラムと本文の英訳を追加してみた。
英訳は、Excite 翻訳 を利用!
numberOfSectionsInTableView:

Asks the data source to return the number of sections in the table view.
テーブル視点における、セクションの数を返すようにデータ源に頼みます。
Table View に section の数を返すってことか・・・


- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

実際のプログラムと比較してみる。

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 3; }

Parameters 
(パラメータ)

tableView

An object representing the table view requesting this information.
この情報を要求するテーブル視点を表すオブジェクト。

Return Value (リターン値)
The number of sections in tableView. The default value is 1.
tableViewのセクションの数。 デフォルト値は1です。

Availability (有用性)
Available in iPhone OS 2.0 and later.
アイフォンOS2.0と後で利用可能です。

See Also (参照)
– tableView:numberOfRowsInSection:

Declared In (宣言)
UITableView.h

なんとなくわかった気が・・・f^^;
これだけじゃなく、もう少し逆引きしてみよ・・・
PR


08 2024/09 10
S M T W T F S
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
HN:
cow

自己紹介:
iPhone購入がきっかけでiPhoneアプリの制作にチャレンジ!