开发者

XCode class models: how to view Framework classes?

开发者 https://www.devze.com 2023-01-08 17:51 出处:网络
I\'m using XCode 3.1.4, I\'d like to browse the iOS framework classes visually, eg. the UIKit.framework classes.

I'm using XCode 3.1.4, I'd like to browse the iOS framework classes visually, eg. the UIKit.framework classes.

I believe this is possible with Class Model facility, the documents here http://developer.apple.com/tools/xcode/xcodefuture.html suggest so:

The Xcode class modeler works with Objective-C, C++, and Java source code files and can give you a look at just a few classes, every class in your project, or even all of the classes in a framework.

I made a Class Mod开发者_运维问答el and selected Add All to include everything including the framework's .framework files. However on the generated diagram where I see UITableViewCell, it has no arrows pointing up from it, even though I know this class inherits from UIView. I've played with clicking various ways, the menus and Info but can't see how to see the full inheritance tree of UITableViewCell.

Can anyone advise?


This is what I did to make it work:

Select the project:

XCode class models: how to view Framework classes?

Then choose Quick Model:

XCode class models: how to view Framework classes?

Then you get a ridiculously large model with all the classes in it.

XCode class models: how to view Framework classes?

If you wanted the classes from just one framework, you could select just that framework in the files list, instead of the whole project.


I see the same thing in the Xcode Class Modeler, so it may be an issue with the tool or a choice made by its authors.


The method you used should give you a correct model, however you may need to move classes around to be able to see the arrows as there are way too many lines present if you model everything at once. The quick model will give the same results using the selection (i.e. if you select your project itself you get everything, and if you select a group of classes you will just get them.

0

精彩评论

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