阅读背景:

创建UICollectionViewController子类并添加一个childviewcontroller。

来源:互联网 

I am new to iOS development. I want to create collectionView in two different view controllers with same UI.I want to create only one UICollectionView and resuse it on different view controller instead of create separate collectionViews . On approach i can follow is to create the UICollectionViewController subclass and add this on my viewcontrollers as a childviewcontroller, but not sure if this is the correct approach do not know how addChildViewcontroller works and how to pass data between child and parent viewcontrollers. It would be great if someone can help on this. If any sample code is available to achive this please let me know.I am new to iOS development. I want to create c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: