私は質問を正しく表現していないかもしれませんが、私が求めていることが100%になるかどうかはわかりませんので、ここに行きます:-)
Xcodeでは、ヘッダーファイルの@interfaceの上に@class(クラスの名前)を設定できます。これは、クラスの名前でUIViewControllerを変更することと同じですか?以下のコードを参照してください。
これは同じですか-
@class CoreDataClass;
@interface FlipsideViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
{
}
//This file declares the UITableView
@property (nonatomic, retain) IBOutlet UITableView *mainTableView;
@property (nonatomic, retain) CoreDataClass *cdc;
このように:
@interface FlipsideViewController : CoreDataClass <UITableViewDataSource, UITableViewDelegate>
{
}
//This file declares the UITableView
@property (nonatomic, retain) IBOutlet UITableView *mainTableView;
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@end
??
これが同じでない場合、それはどのように異なり、異なる実装の利点は何ですか?
違いは、それらが類似しているかどうかだけが実際に尋ねられます:-)