你好朋友,我是 iPhone 新手,请帮帮我。我的问题是如何在 UIWebView 中加载这个数组?
- (void)viewDidLoad {
[super viewDidLoad];
first_heading = [[NSArray alloc] initWithObjects:@"Vocabulary", @"Grammar",
@"Right or wrong?",@"Grammar",
@"Right or wrong?",@"Vocabulary",
@"Right or wrong?",@"Grammar",
@"Right or wrong?",@"Grammar",
@"Vocabulary",@"Grammar",@"Grammar",@"Vocabulary",
@"Grammar",@"Vocabulary",@"Vocabulary",
@"Grammar",@"Right or wrong?",@"Grammar",
@"Grammar",@"Right or wrong?",@"Vocabulary",
@"Grammar",@"Right or wrong?",@"Grammar",nil];
NSString *htmlstring =[first_heading objectAtIndex:0];
[webView loadHTMLString:htmlstring baseURL:nil];
}