Add shared method to alloc init CollectionViewController， fix mediaArray bug