title: Resize UICollectionViewCell for different devices with AutoLayout and iOS 8
body: <p>I am new to iOS programming so please bear with my ignorance. Now, I am building an app similar to the "Photos" app from iOS using CollectView. So, there is a imageView inside the CollectionViewCell. I have set constraints on the imageView and the Cell so when the cell is resized, the imageView is also resized. I have built it based on the dimension of the iPad simulator and it works fine. Now, my problem is porting my app to iPhones - the cell and images remain the same size as in the iPad. What I want to do is they should scaled down accordingly with the dimension of the device (the same image should appear smaller in iPhones). I have tried detecting the device and setting the itemsize  (all the images are of the same dimension so I am not using sizeForItemAtIndexPath:) of the collectionViewFlowLayout programmatically but it means I have to calculate and hardcode the width and height of the cell for different devices. I am wondering if there is a more elegant solution with the coming of iOS8 and AutoLayout without resorting to coding.</p>