Question: I'm faced with a directory structure like :

```
./xxx/src
./xxx/src/folder1
./xxx/src/folder2
./xxx/src/folder2/subfolder1
./xxx/UTest
./xxx/Module
./xxx/Itfs
./.hg
./Tools

```

Instead of having each module define it's own include search directory. I want to find all relevant directories with a "simple" shell command and use this in my top level makefile.

That would look alot nicer and as bonus, force other users to use folders defined in the coding guidelines.

I got as far as :

```
MODINCLUDES = \
$(shell find $(MODULE_DIR) \( -name .hg -o -name Tools \) -prune -o \( -name src -o -name Module -o -name Itfs  \) -type d -print| while read line; do echo "-I$$line"; done )

```

But this would result in 

```
MODINCLUDES = -I/xxx/src -I/xxx/Module -I/xxx/Itfs

```

Obviously I would like have any subfolders in `src` to be included aswell.

```
./xxx/src/folder1
./xxx/src/folder2
./xxx/src/folder2/subfolder1

```

Can someone explain me, on how to do this ?

Thanks !

Answer: 
You have to set clipsToBounds true and give it a desired radius. 

```
cell.image.contentMode = .ScaleAspectFill
cell.image.layer.cornerRadius = 10
cell.image.clipsToBounds = true

//Use this to add border 

cell.image.layer.borderWidth = 3
cell.image.layer.borderColor = UIColor.whiteColor().CGColor

```
The problem what see is that round corner is getting drawn on 84X110 and not 84X84. That's why it looks strange.

Please call `sizeToFit()` (this resizes and moves the receiver view so it just encloses its subviews.).

```
cell.characterThumbnail.sizeToFit()
cell.characterThumbnail.clipsToBound = true

```

just before 

```
cell.characterThumbnail.layer.masksToBounds = true
cell.characterThumbnail.layer.cornerRadius = 15

```

However, if you want to keep thumbnail-view fixed 84X84 and resize the image then you need to set `aspectFill`.
And in the storyboard of ([WoWilvlChecker](https://github.com/Aecasorg/WoWilvlChecker)) fix the width and height of the view to 84X84

Also I think cornerRadius not needed to be 15. A value like 3-5 should be sufficient.