开发者

How to check what's kind of an iOS Application? [closed]

开发者 https://www.devze.com 2023-03-20 00:29 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_JAVA技巧

This question does not appear to be about programming within the scope defined in the help center.

Closed 9 years ago.

Improve this question

I am new on iOS programming. I download some samples from apple website. How do I know what's kind of the sample? View-Based, Window-based, Navigation-based etc.


To add to what @Steve said ( I was editing answer for some time now ... you put it better than I had :)), template does not create any indicator that allows you to find what kind of project. Of course the SDK setting and the run setting can help you understand if its for Iphone or MAC.

But if your project is created with some standard template, it is possible to understand which of those template was used.

Navigate to the .xcodeproj file for the corresponding project. CMD + click ( or right click) and choose open package contents. Open the .pbxproj file. By default this will open in Xcode, search for the term "Template". This will probably point you to the right direction.


Your question "[...] what's kind of an iOS Application? [...] View-Based, Window-based, Navigation-based etc." implies that these templates which ship with Xcode create fundamentally different "kinds" of applications.

This is not true.

All of those project templates create the same kind of project.

They are simply there as a quick-start convenience.


View-based, Window-based, ... are actually the names given to project templates in Xcode. When choosing one at project creation, Xcode provides the stuff you will need, which includes subclasses of common controller classes.

In almost all cases, an iOS app will show a window, and a view inside, so you can consider facing a window-based or a view-based app every time.

About the others, have a look to the files Xcode put in the project folder, you should find a UINavigationController when working with a navigation-based app, and for example a UITabBarController when you develop a tab-based app.

Finally, the best answer you will find is actually in the excellent View Controller Programming Guide for iOS provided by Apple.

Good luck.

0

精彩评论

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