IOS IMPORTANT INTERVIEW QUESTIONS
What are SDK
tools in iPhone?
XCode
IB
Simulator
Instruments
What is Xcode?
Xcode is an Intigrated Development
Environment IDE
it acts like an Editor of Objective c
lang, We can write,run,build our code in xcode.
What is the
simulator?
it is a demo to check our applications
if we didn't have the original device
what are
Instruments:
The instrument enables you to dynamically
trace and profile the performance of the Macos , iPhone, iPad applications.
Bu using Instruments we can test the
performance of the application.
what is
Interface Builder:
Interface builder is
developed in 1988.It is a visual tool that allows you to design your interfaces
for iphone. By using interface builder we can drag and drop the views on
interface.
Explain about
Inspector
It is mainly used for
setting the properties of view elements. It contains four sections.
1)Attribute inspector
2)Connection
3)Size of inspector
4)Identity
Groups and
File sections:
Classes:
In class folder actual
coding will be their.
for window based application we have two
files.
1)appdelegate.h
2)appdelegate.m
For view based applications we have four
files.
1)appdelegate.h
2)appdelegate.m
3)viewcontrol.h
4)viewcontrol.m
what is optimization?
Optimaisation is
nothing but
Making our
application more attractively even after complition of the coding
how can we use multiple class inheritance in objective c?
In Objective c
Multiple inheritance is not supported
for this propous
we use "categories" in Objective c
How can u use object for abstract class?
(or) What is Shared Obj?
We can't create object for abstract class
to call abstract
class we use Shared obj
What are the
types of accessory methods?
we have 2 types of accessor methods:
i.Getter method:
Getter
method is an accessor method that retrieves the value of an instance variable.
ii.Setter method:
Setter
method is an accessor method that Sets the value of an instance variable.
what is a
Selector?
Selector can either be a name of method Or message to an object.
What is
Delegate?
it
is an object that usually read to some events in another object
A Deligate allows one object to send messages to another object when an
Event happens.
An object directly to carryout an action by another object.
What is an App
Delegate..?
it is necessary in any app.
it is a controller which takes care
critical events
whle Starting Running and Editing
applications
iPhone Paths:
iPhone contains two paths.
1.Resource path: By using this
path we can retrieve the data from resource path.But we can not add the data. 2.Modify path By using this path
we can add,modify,delete,retrieve the data.
Accelerometer:
The accelerometer allows
the device to detect the orientation of the device and adapts the content to
suit the new orientation.
Header file:
header
files are preprocessor directories.
in Obj c By using #include,#import we can import the header files.
Resources:
In resources we can add the
outside contents like images,videos,audio files.
It contains info.plist
file.plist file having entire project information.
Products:
The final output present in
product folder and extension is .app
Intiallu .app is in red
color.once if you can build the app then
the .app is created.
Files owner
window:
It contains copy of nib files.
It is always 1st icon in any .nib
file.
what Enum?
It is a user defined data type.it improves speed of execution.
By default it assigns range from 0,1……
Interface:
In interface section that declares the methods
and instance variables of class.
Implementation:
In implementation section that actually defines the class.
what kind of
design pattern we are using?
we are using model view controller
Model:
This layer
manipulates the coding part of the application.
View: This layer
manipulates the design part of the application.
Controller: This layer acts as bridge
between model and view controller.
what is Id?
It is a datatype.Id is a generic c-type used by obj-c to refer to any object.
NSFile
manager:
By using NSfile manager
we can compare,add,delete and update the data in database.
NSBundle
mainbundle:
It is used to pick the
data from resources.
UI
application:
Every iPhone has UI
application.it is the starting point of the every application.
It is responsible for
initializing and display your application on UI Window and also responsible for
loading your application.
Controllers in
iPhone:
By using controllers we can
move from one view to another view.
ex:pushviewcontroller,
popviewcontroller, presentmodelviewcontroller,Dismissmodelviewcontroller.
How can we
deploy our app?
By using standard edition worths 99$ we
we can deploy our app
How can we Localize our app?
or localization have to use current
language
For exam to make a delete button
in English: Delete
in Japanish lan: Aurem
in spanish: Delat
in this way we can localize our app
why e use
Authentication?
for the security purpose we use
authentication
When keyboard appears, hides some part of UI for that what shall we do?
kea board will
appear only in some views like "Textfield","Textviews" etc
but not in all
the views
for display the
keyboard we have to use "becomeFirstResponder"..
for display the
keyboard we have to use "resignFirstResponder"
ex:
[textField
becomeFirstResponder];
[textField
resignFirstResponder];
What is awakeFromNib, becomeFirstResponder?
activity should
be allocated from loading xib file, it should be not nil in awakFromNib
And awakeFromNib
is called when all file owners outlets and properties are set (including view
property).
So it makes
sense that viewDidLoad is called earlier than awakeFromNib.
becomeFirstResponder?
for display the
keyboard we have to use "becomeFirstResponder"..
ex:[textField
becomeFirstResponder];
what happens when we invoke a method on a nil pointer
It returns 0, nil, a structure
filled with 0s,
multiple class inheritance in objective c?
In Objective c
Multiple inheritance is not supported
for this propous
we use "categories" in Objective c
Categories:
A category
allows you to add methods to an existing class
Categories are a
powerful feature that allows you to extend the functionality of existing
classes without subclassing.
The
declaration of a category interface looks very much like a class interface
declaration
except
the category name is listed within parentheses after the class name and the
superclass isn’t mentioned.
Extensions:
Class extensions
are like anonymous categories,
except that the
methods they declare must be implemented in the
main
@implementation block for the corresponding
class.
extensions
allow you to declare additional required methods for a class
in locations other than within the primary
class @interface block,
What is XML parsing?
xml parsing is
the trancefer of data from xml page to our application
the data which
is in term of elements
what r the Delegate Methods for XML Parsing?
There are mainly
3Tyoes of Deligate metots for XML Parsing
i. did start eliment
ii. did end
eliment
iii. found
characters
What is Picker view..?
Picker view lets
the user select an item from a list.
What is Table view?
It is commonly
used to show list of data in the form of Records
WEb Services?
Web services are
application programing interfaces [API]
or Web API's
that are acceced via Hyper Text protocol and excited on a remote system
hosting the
requested services
Differnce between HTML & XML?
XML was designed
to transfer and store the data
XML was to carry
data not to display the data
XML is designed
to be self description.
HTML was
designed to Display the data