how to create the grid of button in pad
How to create the grid of button's 

UIImageView


![enter image description here][1]


  [1]: http://i.stack.imgur.com/4ECRF.png


    UIImageView *content = [[UIImageView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
    
    content.backgroundColor = [UIColor clearColor];
    
    content.autoresizesSubviews = YES;
    
    content.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin |
      
    	UIViewAutoresizingFlexibleRightMargin;
    
    int rowSeparator = 14 ;
    	
    	int imageHeight = 209 ,imageWidth = 314;
    
    int gridIconHeight = 171, gridIconWidth = 309;
    	
    	int xval = 62, yval = 122;
    	
    	for(int i = 0; i<[images count]; i++)
    	{
    		if(xval > 628)
    		{
    			xval = 62;
    			
    			yval += (imageHeight+rowSeparator);
    		}
how to create the grid of button in pad
===

How to create the grid of button's 

UIImageView


![enter image description here][1]


  [1]: http://i.stack.imgur.com/4ECRF.png


    UIImageView *content = [[UIImageView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
    
    content.backgroundColor = [UIColor clearColor];
    
    content.autoresizesSubviews = YES;
    
    content.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin |
      
    	UIViewAutoresizingFlexibleRightMargin;
    
    int rowSeparator = 14 ;
    	
    	int imageHeight = 209 ,imageWidth = 314;
    
    int gridIconHeight = 171, gridIconWidth = 309;
    	
    	int xval = 62, yval = 122;
    	
    	for(int i = 0; i<[images count]; i++)
    	{
    		if(xval > 628)
    		{
    			xval = 62;
    			
    			yval += (imageHeight+rowSeparator);
    		}