From 1611e0294b9c773abceedc7ecaec7007c6fde5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Passolunghi?= Date: Fri, 2 May 2014 00:37:07 +0200 Subject: [PATCH 1/2] Add barTintColor Animatable Property --- pop/POPAnimatableProperty.mm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pop/POPAnimatableProperty.mm b/pop/POPAnimatableProperty.mm index 53519f1e..bbe128a8 100644 --- a/pop/POPAnimatableProperty.mm +++ b/pop/POPAnimatableProperty.mm @@ -70,6 +70,8 @@ NSString * const kPOPTableViewContentOffset = kPOPScrollViewContentOffset; NSString * const kPOPTableViewContentSize = kPOPScrollViewContentSize; +NSString * const kPOPNavigationBarBarTintColor = @"barTintColor"; + /** State structure internal to static animatable property. */ @@ -453,6 +455,18 @@ }, 1.0 }, + + /* UINavigationBar */ + + {kPOPNavigationBarBarTintColor, + ^(UINavigationBar *obj, CGFloat values[]) { + POPUIColorGetRGBAComponents(obj.barTintColor, values); + }, + ^(UINavigationBar *obj, const CGFloat values[]) { + obj.barTintColor = POPUIColorRGBACreate(values); + }, + 1.0 + } #endif From 2e6bfb5c3b585c97e29d9f7dc84f3bfd5457b4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Passolunghi?= Date: Fri, 2 May 2014 00:38:27 +0200 Subject: [PATCH 2/2] Add barTintColor Animatable Property POPAnimatableProperty.h --- pop/POPAnimatableProperty.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pop/POPAnimatableProperty.h b/pop/POPAnimatableProperty.h index 85540eb8..ad67d4b9 100644 --- a/pop/POPAnimatableProperty.h +++ b/pop/POPAnimatableProperty.h @@ -151,5 +151,9 @@ extern NSString * const kPOPScrollViewContentSize; extern NSString * const kPOPTableViewContentOffset; extern NSString * const kPOPTableViewContentSize; +/** + Common UINavigationBar property names. + */ +extern NSString * const kPOPNavigationBarBarTintColor; #endif