devxoul / UINavigationItem-Margin

Margins for UINavigationItem
MIT License
159 stars 12 forks source link

issue:Not working with Storyboard. #2

Closed KittenYang closed 8 years ago

KittenYang commented 9 years ago

I set rightBarButtonItem with storyboard. then set self.navigationController.navigationItem.rightMargin = 0; in viewController ,but it's useless.What's wrong?pls.

devxoul commented 9 years ago

Hi @KittenYang,

Have you tried with self.navigationItem.rightMargin?

devxoul commented 9 years ago

Ummm... that doesn't work. Well, setting bar button item from interface builder won't call setRightBarButtonItem:. It's the main problem. I'll take a look for this.

devxoul commented 9 years ago

@KittenYang, thank you for waiting. I've just made a new release 2.0.1, could you please check with this version?

Thanks!

KittenYang commented 9 years ago

@devxoul Great! I'll try it :+1:

devxoul commented 9 years ago

@KittenYang, please let me know if it works or not :smile: