1

我想要一整页文本(多行)在我的设置中类似于 iphone 上的设置: 设置->常规设置->关于->法律

我无法这样做。我尝试在 PSGroupSpecifier 中输入标题,它给了我多行但背景为灰色。我想要一个白色的背景。任何帮助将不胜感激。

提前致谢

4

1 回答 1

0

使用 UIWebView 并将您的页面作为 HTML 文件存储在您的资源中。

  // Create the UIWebView
  UIWebView *webView = [[[UIWebView alloc] initWithFrame:self.view.frame] autorelease];

  // Add the UIWebView to our view  
  [self.view addSubview:webView];

  // Load the HTML document from resources
  NSString *pagePath = [[NSBundle mainBundle] pathForResource:@"legal" ofType:@"html"];
  NSURL *pageURL = [NSURL fileURLWithPath:pagePath];
  NSURLRequest *pageReq = [NSURLRequest requestWithURL:pageURL];
  [webView loadRequest:pageReq];

于 2010-08-30T03:35:20.543 回答