1. When is the use of Nsmutablearray and when to use Nsarray?
1> when an array element needs to be dynamically added or deleted, use Nsmutablearray
2> when the array element is fixed, use the nsarray
2. Give US example of what is delegate methods and what is data source methods of UITableView.
1> Proxy method: Returns the height of the tableView per row, listening TableView The selection of each row
2> Data Source method: Returns the number of groups and rows of tableView data, and what data is displayed per row
3. How many Autoreleasepool can create in your application? Is there any limit?
No Limits
4. If we don ' t create any autorelease pool in US application then are there any autorelease pool already provided?
Auto-free pools are created and destroyed by default on an unscheduled basis
5. When do you'll create an autorelease pool in your application?
You can manually create an auto-free pool when you do not need to control the object's release time precisely
6. When retain count increase?
As a retain or copy operation, it is possible to increase the counter
7. What is commonly used NSObject class methods?
NSObject Common class methods are:alloc,new,description , etc.
8. What is convenience constructor?Convenient constructor function?
Like nsstirng 's stringwithformat,nsnumber 's numberwithint
9. How to design universal application in Xcode?
1> When you create a project,Device selects Universal
2> can create a set of data models for pain
3> Select different controllersaccording to Iphone\ipad (iPad may use uisplitviewcontroller)
4> Choose a different interface according to Iphone\ipad
Keyword atomic in Objective C?
1> Atomic is atomic
2> Atomic will Lock the implementation of the Set method
What is UIView animations?
The core animation of the UIView package can be implemented through the class method \block
(End-to-end animation and block animation)
How can I store data in IPhone applications?
1> plist Property list (nsarray/nsdictionary)
2> Preference(nsuserdefaults, preferences ) generally not
3> Key-Value archive (nskeyedarchiver,nscoding)
4> SQLite3 Database
5> Core Data
What is Nsmanagedobject model?
Nsmanagedobject is the entity object in Core Data
What is predicate?
Predicate: You can filter the collection data of array, dictionary and so on with certain conditions, also can be used in the data query of Core
iOS Pen question 03