I'm a beginner and know how to allocate memory for objects in most circumstances, still unclear on what situations I don't need to do it to begin with but anyway, I've seen lots of code like this...
When I drag UILabel's with the Interface Builder in XCode I don't see anything in my code that generates this code. I am making the assumption that the memory is handled for me?
Either way I'm curious as to why people would have to allocate memory for a label anyway. Does this only need to happen with a UILabel object is being created when the program is running? Is there a term for creating the UI controls when the program is running?
Thanks
Code:
UILabel *something = [[UILabel alloc] init];
When I drag UILabel's with the Interface Builder in XCode I don't see anything in my code that generates this code. I am making the assumption that the memory is handled for me?
Either way I'm curious as to why people would have to allocate memory for a label anyway. Does this only need to happen with a UILabel object is being created when the program is running? Is there a term for creating the UI controls when the program is running?
Thanks