What is @class in Objective-C


Q.24 What is @class.? Ans:-

  • By using this preprocessor directive we can provide forword declaration of any other class without using inheritance.
  • In implementation when we required to create a object of a class in other class without using inheritance then recommended to go for ‘@class’.
  • UIResponder class will provide event handling process by using user action.
  • UIApplicationDelegate is a protocol which allows to implement app life cycle related method.
  • AppDelegate is a current application delegate class which is inherited from UIResponder and UIApplication.
  • A view is a visual object that creates user interface of an iOS Application.
  • Views are defines within a specific rectangle area of a screen.
  • All views are subclass of UIKit,UIView classes.
  • UIWindow class provides the surfaces on screen which allow to add view components to display.
  • In any kind of iOS application only one UIWindow object is avilable.
  • We can not place any kind of UIControllers directly on UIWindow.
  • UIWinodw must be fit entire screen of the device.
  • UIView class provide model UI for displaying the content view.
  • viewController class is a subclass of UIViewController which allows to add any type of UIControllers.
  • AppDelegate is a subclass of UIResponder which allows to handle surface and App Life Cycle event.

Kalavati Technologies Pvt Ltd