2

I want to add a Custom UINavigationBar Background.

Is there anyway I can do this completely in code? _navigationBarClass seems to be a private property on UINavigationController.

Objective-C: How to change the class of an object at runtime?

Community
  • 1
  • 1
ma11hew28
  • 121,420
  • 116
  • 450
  • 651

1 Answers1

0

While not programmatic it can be done via Storyboards by setting the Navigation Bar class. See https://stackoverflow.com/a/42989418/47281.

Community
  • 1
  • 1
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429