vicpenap / PrettyKit

PrettyKit for iOS is a small set of new widgets and UIKit subclasses that gives you a deeper UIKit customization. You will be able to change their background color, add gradients, shadows, etc.
http://vicpenap.github.com/PrettyKit
Other
1.22k stars 154 forks source link

PrettyTabBar now has shadows! #11

Closed echoz closed 12 years ago

echoz commented 12 years ago

Modified PrettyTabBar to have 2 types of shadows

  1. Upwards shadows for when the bar is placed at the bottom of the screen.
  2. Downwards shadows for when the bar is not placed flushed to the bottom of the screen.

Specify the opacity to get them to display. Setting it to 0 will not have it draw.

Also modified PrettyDrawing to add a more generic drawShadow method.

vicpenap commented 12 years ago

Hei, it looks nice, thanks!

I'll take a look at it in the next few days :)

echoz commented 12 years ago

No worries. Just doing what I can. :)

Wished there was more we can do to customize the tab bar short of traversing the view hierarchy.

echoz commented 12 years ago

Closing this pull request because there are a tonne more stuff I did that would love to see merged.

Adding shadows to the tabbar was just icing on the cake. :)