开发者

View source in iOS Simulator?

开发者 https://www.devze.com 2023-03-09 07:08 出处:网络
Does anybody know of a tool where I can inspect the source code of a site开发者_开发知识库 in Apple\'s iOS Simulator? Something like Firebug or the Chrome Developer Tools for this would be great, and

Does anybody know of a tool where I can inspect the source code of a site开发者_开发知识库 in Apple's iOS Simulator? Something like Firebug or the Chrome Developer Tools for this would be great, and I haven't found anything yet.


The old, previous answers have been deleted as they contained obsolete information.

Using at least Xcode 4 and Safari 6, open up a web view in the iPhone Simulator, then switch to the desktop Safari. In Safari's Develop menu (you have to enable it in the Preferences), you'll find an "iPad Simulator" menu that allows you to open up the Safari Web Inspector for the pages open in the simulator!

0

精彩评论

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

关注公众号