ios - How to add collection view in xib and how to reuse it in swift..? -


this question has answer here:

in application,i want add collection view in xib , want reuse in different controllers.i tried xib did not allowed add collection view add cells..??

in of cases challangeing task make viewcontroller reusable since different viewcontrollers have interact different views may have different behaviour, focus on making views reusable using xib as possible. conclusion is preferred use xib file reusable cells not viewcontrollers reuse here , there. can use xib file viewcontrollers instead of keeping refernce in storyboard.


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -