iphone - how to load a class in Objective-C -


Objective for iPhone-application - How to load class in C? I know that the tax bundling concept is in Mac, but can I use the same bundle concept for the iPhone to load in the classroom?

What do you want to load? If you want to load a square from nibb, you just want to do something:

  YourClassName * classInstance = [[YourClassName alloc] initWithNibName: @ "YourClassName" bundle: nil];  

Only certain classes will apply initWithNibName, such as UIViewControllers, you can load an owner from one bite to an owner with your bundle with the following:

  [[NSBundle mainBundle] loadNibNamed: @ "YourClassName" owner: self choice: zero];  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -