Powered by
Powered by
HuntMyIdeas-Inspire You To Make It Happen
Follow
   Me
  • Blogs
  • About Me
  • Home

iOS Interview Questions And Answers Part13

12/1/2014

0 Comments

 
Picture
1.Outline the class hierarchy for a UIButton until NSObject. 

Answer:
UIButton inherits from UIControl, UIControl inherits from UIView, UIView inherits from UIResponder, UIResponder inherits from the root class NSObject.
2.Explain the difference between NSOperationQueue concurrent and non-concurrent. 
Answer:


In the context of an NSOperation object, which runs in an NSOperationQueue, the terms concurrent and non-concurrent do not necessarily refer to the side-by-side execution of threads. 
Instead, a non-concurrent operation is one that executes using the environment that is provided for it while a concurrent operation is responsible for setting up its own execution environment.

Read:
Core Data Interview Questions and Answers
Top iOS Interview Questions And Answers for Beginners

3.Implement your own synthesized methods for the property NSString *title.
Answer:-


Well you would want to implement the getter and setter for the title object. Something like this


- (NSString*) title {
  return title;
}

- (void) setTitle: (NSString*) newTitle {
  if (newTitle != title) 
  title = [newTitle retain]; // Or copy, depending on your needs.
}


Read:
Top iOS interview Questions And Answers Collection
iOS Interview Questions And Answers For 1-2 years Experienced Candidates.

4.Is Objective C support multiple inheritance? How it’s over come?
Answer:-

Objective-C doesn't support multiple inheritance. You could use a protocol, composition and message forwarding to achieve the same result.

A protocol defines a set of methods that an object must implement (it's possible to have optional methods too).

Composition is basically the technique of include a reference to another object and calling that object when it's functionality is required.

Message forwarding is a mechanism that allows objects to pass messages onto other objects, for example, an object that is included via composition.


Read:
Some important points About View Controller.
iOS Interview Questions And Answers Part 10 

5.Explain Application lifecycle
Answer:

Chronology of an application: 

When the process is started, it runs the NSApplicationMain function, which creates an instance of NSApplication.

The application object reads the main nib file and unarchives the objects inside. The objects are all sent the message awakeFromNib.

Then the application object checks for events.


Read:
Basic iOS interview Questions And Answers 
Top 5 Frequently Asked iOS Interview Questions And Answers.
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Enter your email address:

    Delivered by FeedBurner

    RSS Feed

    Archives

    December 2019
    August 2018
    January 2018
    December 2017
    November 2017
    October 2017
    August 2017
    April 2017
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014


    ​​Categories

    All
    Affiliate Marketing
    Alexa Rank
    Apple's Latest Updates
    Blog Tips
    Cocos2d X
    Cocos2d-x
    Google AdSense Tips
    Grab-some-ultimate-ideas
    How-to-create-a-twinkling-star-background-effect-in-ios
    In-App Purchase Tutorial In Cocos2d-x (C++) Using SDKBOX
    Ios Interview Questions And Answers
    IOS Multiple Choice Questions And Answers
    Objective C
    Online Business
    Python
    Secrets To Effective IPhone App Marketing
    SEO Tips
    Swift Interview Questions
    Swift Tutorials
    Top 10 Articles Objective C
    Top 10 Articles-Objective-C
    Top 10 Popular Movies Ever
    Top 10 Popular Things To Know
    Top 10 Ultimate Issues Xcode
    Top 400 IOS Interview Questions
    Top IOS Sample Projects To Learn From
    Top Secrets To App Marketing
    UICollectionView
    Unity 3D
    Xcode

WELCOME TO HUNTMYIDEAS

Picture
I am Jitendra Gochhayat,an iOS Developer,Designer,blogger,
​from Odisha,India.
I write about ​​​blog tips and,
Make money online Tips,
​Objective C tutorials
SUSCRIBE TO NEWSLETTER

    Subscribe to this blog and receive notifications of new posts by email

Suscribe
Picture
Picture
Picture
Picture
Picture
HuntMyIdeas-2016 Powered By Weebly
Picture
Powered by Create your own unique website with customizable templates.
Powered by
Powered by