About 1,730,000 results
Open links in new tab
  1. objective c - What is the difference between class and instance …

    What's the difference between a class method and an instance method? Are instance methods the accessors (getters and setters) while class methods are pretty much everything else?

  2. How do I call Objective-C code from Swift? - Stack Overflow

    In Swift, how does one call Objective-C code? Apple mentioned that they could co-exist in one application, but does this mean that one could technically re-use old classes made in …

  3. How do I declare class-level properties in Objective-C?

    Mar 30, 2009 · Maybe this is obvious, but I don't know how to declare class properties in Objective-C. I need to cache per-class a dictionary and wonder how put it in the class.

  4. Objective-C: @class Directive before @interface?

    Since Objective-C is pretty much typeless at runtime, that's often all that the compiler actually needs to know — just enough to distinguish the thing from an atomic C value. I'm going to take …

  5. How can I import Swift code to Objective-C? - Stack Overflow

    The Swift files in your target will be visible in Objective-C .m files containing this import statement. To avoid cyclical references, don’t import Swift into an Objective-C header file. Instead, you …

  6. How do I test which class an object is in Objective-C?

    Jan 13, 2010 · How do I test whether an object is an instance of a particular class in Objective-C? Let's say I want to see if object a is an instance of class b, or class c, how do I go about doing it?

  7. Class Objects and Instance Variables in Objective-C

    Dec 25, 2014 · In Objective-C, there are instances, which are the objects that you create and use, and there are (semi-hidden) objects which are class objects, and which are created by the …

  8. Call Swift function from Objective-C class - Stack Overflow

    I have an old Objective-C project and I want to call new Swift function and object, I have create the file " <ProjectName>-Bridging-Header.h " and " <ProjectName>-Swift.h " was easy for me …

  9. objective c - @class vs. #import - Stack Overflow

    Nov 27, 2008 · Look at the Objective-C Programming Language documentation on ADC Under the section on Defining a Class | Class Interface it describes why this is done: The @class …

  10. Mixing C functions in an Objective-C class - Stack Overflow

    54 Mixing C and Objective-C methods and function is possible, here is a simple example that uses the SQLite API within an iPhone App: (course site) Download the Zip file …