私は次のような静的配列を持っています.ここでは静的配列です.Webサービスからロードしたい. 例えば
- (void)viewDidLoad
{
[super viewDidLoad];
tableData = [NSArray arrayWithObjects:@"Egg Benedict", @"Mushroom Risotto",
@"Pig spit-roast", @"goat", @"beefed up beef", @"squidles",
@"whale", @"crabbies", @"quack", @"Instant Noodle with Egg",
@"Noodle with BBQ Pork", @"Japanese Noodle with Pork",
@"Green Tea", @"Thai Shrimp Cake", @"Angry Birds Cake",
@"Ham and Cheese Panini", nil];
}
そのようなサービスからすべての食べ物をロードしたい
NSString *soapMessage =[NSString stringWithFormat:
@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"
"<soap:Body>"
"<List xmlns=\"http://tempuri.org/\">"
"<Foods></Foods>"
"</List>"
"</soap:Body>"
"</soap:Envelope>"
];