2

I would like to remove the top 1px hairline display at the top, and add the 1px hairline to the bottom on a UiToolbar.

@property (strong, nonatomic) IBOutlet UIToolbar *uiToolbar;

// This removes the top hairline
uiToolbar.clipsToBounds = YES;

// How do I add a bottom hairline? (Should also resize automatically from portrait and landscape.)

Thanks

user1256378
  • 712
  • 2
  • 12
  • 31
  • Hello mownier, You are correct. I did not think about UiToolbar being a subclass of UiView (so all my google searches did not work) If you write this as an answer I'll mark it as correct. Cheers. – user1256378 Apr 19 '14 at 14:10
  • Hi @user1256378, I write my comment as an answer. Glad to help. Cheers! – mownier Apr 21 '14 at 03:45

1 Answers1

4

Returning UIBarPositionTop from the -positionForBar: delegate method will also achieve the results you are looking for.

iOS7 UIStatusBar blur not correct

Community
  • 1
  • 1
Saltymule
  • 2,907
  • 2
  • 22
  • 30