diff --git a/Podfile b/Podfile index 162053a..89c3c8c 100644 --- a/Podfile +++ b/Podfile @@ -1,6 +1,6 @@ platform :ios, '5.0' -pod 'FoundationExtension', '~> 0.44' +pod 'FoundationExtension', '~> 0.46' pod 'SevenSwitch', '~> 1.3.0' pod 'GIKPopoverBackgroundView/Core' pod 'UIKitResources/UIAccessoryButton' diff --git a/UI7Kit.podspec b/UI7Kit.podspec index fbf1c65..44dd7de 100644 --- a/UI7Kit.podspec +++ b/UI7Kit.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = "UI7Kit" - s.version = "0.9.11" + s.version = "0.9.12" s.summary = "UI7Kit is a GUI toolkit to implement iOS7 look & feel UIKit under iOS5/iOS6. It is also supported that patching UIKit to UI7Kit in runtime." s.homepage = "https://github.com/youknowone/UI7Kit" s.screenshots = "https://raw.github.com/youknowone/UI7Kit/master/UI7Kit.png", s.license = "2-clause BSD" s.author = { "Jeong YunWon" => "jeong@youknowone.org" } - s.source = { :git => "https://github.com/youknowone/UI7Kit.git", :tag => "0.9.11" } + s.source = { :git => "https://github.com/youknowone/UI7Kit.git", :tag => "0.9.12" } s.platform = :ios, '5.0' s.header_dir = "UI7Kit" @@ -101,7 +101,7 @@ Pod::Spec.new do |s| #include #include ' - core.dependency 'FoundationExtension', '~> 0.44' + core.dependency 'FoundationExtension', '~> 0.46' core.dependency 'cdebug' core.dependency 'UI7Kit/UI7Color' end diff --git a/UI7Kit/UI7PickerView.m b/UI7Kit/UI7PickerView.m index a32cc09..08bf0e4 100644 --- a/UI7Kit/UI7PickerView.m +++ b/UI7Kit/UI7PickerView.m @@ -14,12 +14,6 @@ #import "UI7TableView.h" #import "UI7TableViewCell.h" -#ifdef __IPHONE_6_0 -# define ALIGN_CENTER NSTextAlignmentCenter -#else -# define ALIGN_CENTER UITextAlignmentCenter -#endif - CGFloat UI7PickerLikeViewRowHeight = 36.0f; @interface UI7PickerLikeView () { @@ -292,7 +286,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; if (cell == nil) { cell = (id)[UI7TableViewCell cellWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; - cell.textLabel.textAlignment = ALIGN_CENTER; + cell.textLabel.textAlignment = NSTextAlignmentCenter; cell.selectedBackgroundView = [UIColor clearColor].image.view; cell.backgroundColor = [UIColor clearColor]; cell.textLabel.font = [UI7Font iOS7SystemFontOfSize:cell.textLabel.font.pointSize attribute:UI7FontAttributeLight]; // weird behavior