开发者

Child XIB open over Main XIB

i want to open new xib(view) over the Main xib(view).

i.e Main (Parent) xib when i click on button inside parent XIB. child xib open over parent xiB, and it sho开发者_如何转开发uld see parent xib.

is this possible?


This is probably easiest to solve using viewControllers rather than just xib's (if that is posisble in your scenario). If each XIB is a view with a view controller then the button inside the parent XIB can alloc/init then displayModalViewController which will display the child XIB. As for allowing the child to "see" the parent: in the Model View Controller paradigm, views should not "see" each other - the controllers should update the model from their own views, and visa versa.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜