Explain keywords alloc and new?
Answer / Anjana Gupta
In Objective-C, 'alloc' is used to allocate memory for an object, while 'new' initializes the newly allocated memory with zeros. When you use '[Class new]', it's syntactic sugar for '[Class alloc] init'. Both are essential for creating objects in memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we prevent ios 8 app’s streaming video media from being captured by quicktime player on yosemite during screen recording?
What json framework supported by ios?
Is xcode a framework?
What is appdelegate?
Explain about the applications that can be used with iphone ?
What are all the difference between iOS3, iOS4 and iOS5?
What is cocoa and cocoa touch?
Does iOs supports multitasking?
Explain formal protocols?
What is a struct in iOS operating system?
Explain UIApplication delegate
What is background mode in ios?