Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

51.

ViewController Lifecycle.

Answer»

While the view controller lifecycle is about the controller itself, for the most PART, significant to how its root see, that UIView INSTANCE, SHOWS up and vanishes ONTO the screen. I will be EXPLICITLY discussing the view controller lifecycle, and it’s relating techniques

52.

App Life Cycle.

Answer»

An app in iOS goes through completely different states as it runs. These shows the states of the appliance LIFE cycle. Below are the states of the associate app.

  • Not running

The application has not been running or was launched however was terminated by the SYSTEM.

  • Inactive

The app is running within the foreground; however, it is presently not receiving events. (It is also death penalty alternative code though) the associate app typically stays during this state because it transitions to a distinct state.

  • Active

The app is running within the foreground and is receiving events. This is often the conventional mode for foreground apps.

  • Background

The app is within the context and executing code. Most apps enter this state SHORTLY on their way to being SUSPENDED. However, an associate app that requests additional execution time might stay during this state for an amount of your time. Additionally, an app being launched directly into the background enters this state rather than the inactive state. For info concerning the way to execute code whereas within the environment, SEE Background Execution.

  • Suspended

The app is within the background; however, executing code isn’t. The system moves apps to the current state mechanically and doesn't send word them before doing this. Whereas suspended, the associate app remains in memory however doesn't execute any code.

53.

Tell me the hierarchy of UIButton.

Answer»

NSObject -> UIResponder ->UIView -> UiControl ->UIButton.

9. Why UIControl is PROVIDED if we can create custom UIView?

You can additionally produce a custom read to encapsulate the visual appearance and behavior of your own reusable element. For instance, in a very NEWS reading APPLICATION, we would DESIRE a standard part to show pictures with a caption employing a consistent style on each the home page view controller similarly individual story view controller.

54.

What is the responder chain?

Answer»

The RESPONDER chain is a series of coupled responder OBJECTS. It starts with the primary responder and finishes with the app object. If the primary responder cannot handle an OCCURRENCE, it FORWARDS the EVENT to consecutive responder within the responder chain.

55.

Can a static library (.a) contain assets like pictures, sound documents and so on.?

Answer»

NO, You can’t offer SOMETHING aside from code with a static library. This is often as a result of .a files measure an accessible ARCHIVE of OBJECT files, with the EXTRA ability beneath Mac/iOS of SUPPORTING multiple processor architectures.

56.

What are the sorts of iOS binaries you can make utilizing Xcode?

Answer»

you can CREATE .APP, .IPA, .a and .FRAMEWORK.

57.

Would I be able to keep in touch with some C++ work in the equivalent .m record? Will it compile? Assuming no, what changes would it be a good idea for me to do to compile it?

Answer»

The EASIEST SOLUTION is to inform Xcode to compile everything as OBJECTIVE C++ merely. Set your TARGET on the settings to Compile Sources As to Objective C++ and RECOMPILE. After that use C++ or Objective C anywhere you want.

58.

Can we support the same application for iPhone 3GS and iPhone 5, 6, 7? Why not?

Answer»

We cannot SUPPORT the same application for iPhone 3GS AND 5, 6, 7 because iPhone 3GS doesn’t support IOS6 or later VERSIONS.

59.

What iOS version onwards ARC can be used?

Answer»

ARC is an IOS 5 SPECIFIC feature and USING storyboard means that you need to raise minimum supported OS to IOS 5.

60.

What are the CPU architectures supported by iOS devices?

Answer»

There are CPU designs upheld by IOS gadgets:-

iPhones and Ipads

  • Arm64 is the current 64-bit ARM CPU design, as UTILIZED since the iPhone 5S and later (6, 6S, SE and 7), the iPad Air, Air 2 and Pro, with the A7 and AFTERWARD chips.
  • armv7s (a.k.a. swift, not to be CONFUSED with the language of a similar name), is utilized in Apple's A6 and A6X chips on iPhone 5, iPhone 5C and iPad 4.
  • armv7, a first variation of the 32-bit ARM CPU, as utilized in the A5 and prior.

TvOS

  • On tvOS, Elements underpins three structures for gadget sending:
  • arm64 is the current 64-bit ARM CPU design and utilized on Apple TV 4
  • x64_64 (i.e., 64-bit Intel) is utilized in the Simulator

WatchOS

  • On tvOS, Elements underpins three designs for gadget arrangement:
  • Armv7k is a 32-bit variation of standard armv7 and utilized on Apple Watch Series 0, 1 and 2.
  • i386 (i.e., 32-bit Intel) is utilized in the Simulator