Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are the UIKit Framework implementation files located?

Tags:

I can find the UIKit header files but i'd like to see how some of the UIKit classes are being implemented because i'm trying to create some custom controls.

So basically i'm trying to find the UIKit .m files, where would they be located on my mac?

like image 932
Christian Gossain Avatar asked Nov 15 '10 02:11

Christian Gossain


People also ask

Is UIKit a framework or library?

The UIKit framework provides the core objects that you need to build apps for iOS and tvOS. You use these objects to display your content onscreen, to interact with that content, and to manage interactions with the system.

What is UIKit framework and UI Foundation framework?

UIkit gives you a comprehensive collection of HTML, CSS, and JS components which is simple to use, easy to customize and extendable. Foundation and UIkIt can be categorized as "Front-End Frameworks" tools. Some of the features offered by Foundation are: Semantic: Everything is semantic.

What is included in UIKit?

UIKit also includes support for animations, documents, drawing and printing, text management and display, search, app extensions, resource management, and getting information about the current device.

Is SwiftUI built on UIKit?

Even though SwiftUI relies on UIKit and AppKit, it takes a very different approach to building user interfaces. Its declarative syntax simplifies user interface development and its integration with Xcode makes building and debugging user interfaces easier and faster than ever before.


2 Answers

The source code (as hotpaw2 said) is only available to Apple, but there are multiple ways you can see what's going on:

  • Using the program class-dump (example output for UIKit: https://github.com/kennytm/iphone-private-frameworks/tree/master/UIKit/ ), you can view all the private methods and instance variables of the UIKit classes, to see how they implement them at a higher level.
  • Disassemblers, like IDA Pro ( http://hex-rays.com/ ) can disassemble and read the assembly-level code for the classes, although this is much lower level than is often useful.

So, while it's not as simple as opening up some .m files, it's certainly possible to see how Apple does things in UIKit!

like image 182
Grant Paul Avatar answered Oct 10 '22 01:10

Grant Paul


They aren't on your Mac (in source form). Only Apple has access to most UIKit source. What you have on your Mac is already compiled into library binary files.

like image 40
hotpaw2 Avatar answered Oct 10 '22 00:10

hotpaw2