1

我正在为 iOS (iPad) 编写浏览器,我想知道如何进行用户设置,使浏览器看起来像是 Safari Desktop、Firefox 等(我是初学者)谢谢!

4

1 回答 1

0
NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:@"custom user agent", @"UserAgent", nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];
[dictionary release];

在创建 Web 视图之前可能会起作用。

于 2011-08-12T15:35:02.113 回答