Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Rebuild separators when set buttons array #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AKSegmentedControl.podspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Pod::Spec.new do |s|
s.name = 'AKSegmentedControl'
s.version = '1.0.4'
s.version = '1.0.5'
s.author = { 'Ali Karagoz' => '[email protected]' }
s.homepage = 'https://github.com/alikaragoz/AKSegmentedControl'
s.summary = 'AKSegmentedControl is a fully customizable Segmented Control for iOS.'
s.source = { :git => 'https://github.com/alikaragoz/AKSegmentedControl.git', :tag => '1.0.4' }
s.source = { :git => 'https://github.com/alikaragoz/AKSegmentedControl.git', :tag => '1.0.5' }
s.license = 'MIT'

s.platform = :ios
Expand Down
1 change: 0 additions & 1 deletion AKSegmentedControl/AKSegmentedControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ - (void)setBackgroundImage:(UIImage *)backgroundImage {

- (void)setButtonsArray:(NSArray *)buttonsArray {
[_buttonsArray makeObjectsPerformSelector:@selector(removeFromSuperview)];
[_separatorsArray removeAllObjects];

_buttonsArray = buttonsArray;

Expand Down