0

これがベスト プラクティスではないことはわかっているので、読み込み時間を短縮するために、個々のデリゲートへのこれらすべてのリクエストを削除する最善の方法を知りたいと思います。その結果、各フィードが呼び出されるとすぐに読み込まれるか、非同期で読み込まれます。

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:           (NSDictionary *)launchOptions
{
// Override point for customization after application launch.

// make RSS call
JSTRRSSReader *reader = [[JSTRRSSReader alloc] init];
[reader startRequest];

BUSINESSReader *busreader = [[BUSINESSReader alloc] init];
[busreader startRequest];

SPORTSReader *sportreader = [[SPORTSReader alloc] init];
[sportreader startRequest];

LIFESTYLEReader *lifestylereader = [[LIFESTYLEReader alloc] init];
[lifestylereader startRequest];

TEENAGEReader *teenagereader = [[TEENAGEReader alloc] init];
[teenagereader startRequest];

EDITORIALReader *editorialreader = [[EDITORIALReader alloc] init];
[editorialreader startRequest];

COLUMNReader *columnreader = [[COLUMNReader alloc] init];
[columnreader startRequest];

FOODReader *foodreader = [[FOODReader alloc] init];
[foodreader startRequest];

ALLWOMANReader *allwomanreader = [[ALLWOMANReader alloc] init];
[allwomanreader startRequest];

LETTERSReader *lettersreader = [[LETTERSReader alloc] init];
[lettersreader startRequest];

AUTOReader *autoreader = [[AUTOReader alloc] init];
[autoreader startRequest];

ENTERTAINMENTReader *entertainmentreader = [[ENTERTAINMENTReader alloc] init];
[entertainmentreader startRequest];

ENVIRONMENTReader *environmentreader = [[ENVIRONMENTReader alloc] init];
[environmentreader startRequest];

CAREERReader *careerreader = [[CAREERReader alloc] init];
[careerreader startRequest];

MAINReader *mainreader = [[MAINReader alloc] init];
[mainreader startRequest];

SLIDERReader *sliderreader = [[SLIDERReader alloc] init];
[sliderreader startRequest];

return YES;
}
4

1 に答える 1