1

I am using AQGridView in my project. we need to create a black colored border around each image. Can anyone help me on this.

Thanks in advance.

Regards, Jas.

Jasmine
  • 1,511
  • 2
  • 10
  • 5

2 Answers2

1

for UIImageView it is like something :-

[imageView.layer setBorderColor: [[UIColor blackColor] CGColor]];
[imageView.layer setBorderWidth: 2.0];

Hope it works on AQGridView...

Cheers

Tornado
  • 1,069
  • 12
  • 28
  • also refer to this post http://stackoverflow.com/questions/1354811/how-can-i-take-an-uiimage-and-give-it-a-black-border – Tornado Dec 22 '11 at 13:34
  • It applies for the gridView. but we need to apply border for each image in the AQGridView. Thanks for your answer, – Jasmine Dec 22 '11 at 14:09
1

You could also put your AQGridView in a larger UIImageView that was empty but had the background set to black.

Owen Hartnett
  • 5,925
  • 2
  • 19
  • 35