Q:

Implementing a grid of buttons on iOS

What would be the best way to implement a button layout similar to the following pictures?
I was reading up on creating a custom UIView or UIControl, but then I started to think that maybe a custom UICollectionViewLayout would be better. I need to have the flexibility to make some of the buttons take up the space of two or more buttons (such as a larger button for the "equals" sign).
I was thinking that NSMatrix would work great, but it's not implemented in iOS.
Can I get some advice on what would be the best way to approach this?
Thanks in advance!

 

A:

You can use UICollectionView that is very useful for gridview.So i'm giving you a link so please read n implement it.

http://www.cnblogs.com/simonshi2012/archive/2012/10/08/2715136.html
http://www.raywenderlich.com/22324/beginning-uicollectionview-in-ios-6-part-12
https://github.com/AshFurrow/UICollectionViewExample

