I have found with time profiler that:
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCellWithReuseIdentifier(collectionCell, forIndexPath: indexPath) as ItemCollectionCell
var ash = showcaseArray.objectAtIndex(indexPath.section) as? Showcase
var idcat = ash?.id
var catalogs = self.showcaseElements.objectForKey(idcat!) as [Catalog]
var aCatalog: Catalog = catalogs[indexPath.row] as Catalog
var test = aCatalog.title
cell.catalogTitle = test
When i access to an NSObject of kind Catalog too much time are spent for this assignement:
cell.catalogTitle = test
I cannot understand.
The NSObject is:
class Catalog: NSObject {
var contentId = ""
var type = ""
var title = ""
var sequence = ""
}