UITableView を使用した私の見解では、nib にファイル所有者を指定してデリゲートとデータ ソースを設定しました。そして、私のクラス .h ファイルでは、以下のようなプロトコルに準拠しています...
例えば:
@interface test : UIViewController<UITableViewDelegate, UITableViewDataSource>
{
...
...
}
すべてが正常に機能しています...デリゲートメソッドはすべて適切に呼び出されています...私の質問は、.hに「UITableViewDelegate、UITableViewDataSource」を追加する理由です。それなしでも、私はそれらの電話を受けています。これの用途は何ですか?
ありがとう