如何使用HTMLString在Xcode 4.6中的UIWebView中加载数组?

时间:2013-05-25 15:03:48

标签: arrays uiwebview nsstring

你好朋友我是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];

}

0 个答案:

没有答案