Cocoa touch - creating view template for iPad

Posted by teepusink on Stack Overflow See other posts from Stack Overflow or by teepusink
Published on 2010-04-20T22:06:21Z Indexed on 2010/04/21 17:03 UTC
Read the original article Hit count: 184

Filed under:
|
|

Hi,

This is kinda a hard question to describe.

I'm just starting to make an iPad app.
Now with the amount of real estate I have, I'm planning to have different but similar "views" to populate the space. (might be easier to think a newspaper site, where many of the columns are similar)
I would like to create a "view template" so I can reuse the view in the different spots.

Is it possible to design the view template in Interface Builder? (meaning I design the UIView in Interface Builder and then somehow I can just do [window addSubview:viewController.viewTemplate1]; multiple times?
If so how would I load that view template in the different places?
If you know of an example code / tutorial that does something similar, that would work too.

Thanks,
Tee

© Stack Overflow or respective owner

Related posts about ipad

Related posts about cocoa-touch