开发者

iPhone SDK: Preferences

I wanted an entire page of text(multiple lines) in my settings similar to the one on iphone: settings->general settings->About->Legal

I have not been able to do so. I tried entering title in PSGroupSpecifier, it gives me multiple lines but with a gray background. i wanted a white background. Any help would be highly appreciated.

Thanks in adv开发者_如何转开发ance


Use a UIWebView and store your page as a HTML file in your resources.

  // 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];

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜