![]() |
1).Choose correct statements to create a dictionary? (More than one answers possible)
i) dict = {} ii) dict = {“dev”:70, “mike”:95} iii) dict= {70:”dev”, 95:”mike”} iv) dict = (70:”dev”, 95:”70”) Answer: ii, iii & iv. |
0 Comments
These are basically the frameworks used for development of applications.
The core concepts of Cocoa and Cocoa touch are similar.But there is some main differences between these frameworks.After a lot of reference,I have concluded some best points regarding the differences between Cocoa and Cocoa Touch which every beginner should know before starting development.
The .xib file extension is most commonly associated with Interface Builder files. Interface Builder is a graphics editing software that is used to design and test the user interfaces of a variety of software products.
The files with the .xib file extension contain development time format files. These files contain the interface files created with the Interface Builder software.
You must have heard about .ipa files while developing iOS Applications or if you are into jail breaking your iPhone/iPad or iPod Touch,you probably also been looking for the illegal iOS ipa files.
In this post,I have explained about it's use and what it stands for.ipa stands for iOS App Store Package.
Plist means "Property List". It is in XML file format It is mainly used for storing and retrieving data It can store as key-value pair.In iPhone development, Property Lists are a key-value store that your application can use to save and retrieve persistent data.Plist files are quite useful in that they can store an array of NSDictionary’s.This makes them quite handy for storing information.
What is VIewController?
View controllers play a crucial role for designing most iPhone applications.Today, I am going to explain only the UIViewController Life Cycle.The UIViewController class is the base class that establishes communication between model and View in iOS MVC design pattern.
In this post we will discuss about application's background transition cycle.You must be curious to know -" what happens when user presses Home button of iOS device","what are the application states by which app goes through when user presses Sleep or Wake button", "what happens when the system launches another app".
View controllers plays a very important role in iOS applications and build the skeleton of every app you develop.A view Controller manages multiple views of your app's user interface.
-It basically loads and disposes the views, for managing interactions with those views, and coordinates responses with the suitable data objects. -View controllers also communicates with other view controllers to manage your app’s overall interface.
Prior to iOS 4.0, it was impossible to run more than one Application at the same time. What I mean to say, if you are playing a Game and try to switch to another App,you have to close the first App.
Apple resolved this issue with the introduction of multitasking operating system iOS 4.With Multitasking, you can use more than one app at a time on your iOS device.
When the user sends an App to background,they moves to an inactive state so that system can send them to a suspended state as soon as possible.If some apps have to complete some tasks or need some extra time ,they can call beginBackgroundTaskWithName:expirationHandler: or
beginBackgroundTaskWithExpirationHandler: method of UIApplication object to request for additional time
What is Bundle Identifier in Xcode ?
Answer: It's an unique string that identifies your app. It is usually written in reverse DNS notation i.e (com.Yourcompanyname.yourApp).
There are some cases where RuntimePlatform is needed to be checked at runtime.We have several ways to check at compilation time and run time whether a device is iPhone or Android.
What is derived data in Xcode ?
It’s a folder containing your build information, targets of debug and release as well as projects index. Why do we delete the derived data ? It helps to get rid of some code compilations issues, slow project and constant reindexing issue.
Objective-C is built upon the C , it’s important to know how to convert C based strings to NSString objects, and vice-versa.
A C string is simply a series of characters (a one-dimensional character array) that is null-terminated, whereas an NSString object is a complete object with class methods, instance methods, etc.
In this post we can prefer two best solutions to check if a string contains another string .We can use rangeOfString: that returns an NSRange struct {NSNotFound, 0}.
|
Archives
December 2019
Categories
All
|