Skip to content

Instantly share code, notes, and snippets.

Avatar

Anthony Prato aprato

  • USA
View GitHub Profile
View Macros.h
#ifndef NS_DESIGNATED_INITIALIZER
#if __has_attribute(objc_designated_initializer)
#define NS_DESIGNATED_INITIALIZER __attribute((objc_designated_initializer))
#else
#define NS_DESIGNATED_INITIALIZER
#endif
#endif
@aprato
aprato / AMPNavigationBar.m
Last active Jul 13, 2018
Darker iOS7 translucent UINavigationBar
View AMPNavigationBar.m
// .h
@interface AMPNavigationBar : UINavigationBar
@property (nonatomic, assign) CGFloat extraColorLayerOpacity UI_APPEARANCE_SELECTOR;
@end
// .m
You can’t perform that action at this time.