UINavigationBar(Stripe_Theme)
@interface UINavigationBar (Stripe_Theme)
This allows quickly setting the appearance of a UINavigationBar
to match your
application. This is useful if you’re presenting an STPAddCardViewController
or STPPaymentOptionsViewController
inside a UINavigationController
.
-
Deprecated
Use the
stp_theme
property.Sets the navigation bar’s appearance to the desired theme. This will affect the bar’s
tintColor
andbarTintColor
properties, as well as the color of the single-pixel line at the bottom of the navbar.Declaration
Objective-C
- (void)stp_setTheme:(nonnull STPTheme *)theme;
Swift
func stp_setTheme(_ theme: STPTheme)
Parameters
theme
the theme to use to style the navigation bar. - see: STPTheme.h @deprecated Use the
stp_theme
property instead -
Sets the navigation bar’s appearance to the desired theme. This will affect the bar’s
tintColor
andbarTintColor
properties, as well as the color of the single-pixel line at the bottom of the navbar. Stripe view controllers will use their navigation bar’s theme for their UIBarButtonItems instead of their own theme if it is not nil.See
STPTheme.h