Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section titles does not display under iOS10(compatible bug) #215

Closed
lotushacker opened this issue Sep 3, 2016 · 16 comments
Closed

Section titles does not display under iOS10(compatible bug) #215

lotushacker opened this issue Sep 3, 2016 · 16 comments

Comments

@lotushacker
Copy link

lotushacker commented Sep 3, 2016

Hi:

  • I have set section titles for my segmentedControl like code below:
NSArray* titleArray = @[titleOne, titleTwo];

    self.segmentCtl = [[AMCustomSegmentedControl alloc] initWithSectionTitles:titleArray];
    [self.segmentCtl setFrame:CGRectMake(0, 0, SCREEN_WIDTH, 42.0f)];
    self.segmentCtl.selectedSegmentIndex = 0;
    self.segmentCtl.selectionIndicatorLocation = AMSegmentedControlSelectionIndicatorLocationDown;
    self.segmentCtl.segmentWidthStyle = AMSegmentedControlSegmentWidthStyleFixed;
    self.segmentCtl.selectionIndicatorColor = [UIColor colorWithRGB:0xE64322];
    self.segmentCtl.selectionStyle = AMSegmentedControlSelectionStyleFullWidthStripe;
    self.segmentCtl.selectionIndicatorHeight = 2.0f;
    self.segmentCtl.borderType = AMSegmentedControlBorderTypeBottom;
    self.segmentCtl.borderColor = [UIColor colorWithRGB:0xE5E5E5];
    self.segmentCtl.titleTextAttributes = @{NSFontAttributeName: SYSTEMFONT(15.0f), NSForegroundColorAttributeName: [UIColor colorWithRGB:0x757575]};
    self.segmentCtl.selectedTitleTextAttributes = @{NSFontAttributeName: SYSTEMFONT(15.0f), NSForegroundColorAttributeName: [UIColor colorWithRGB:0xE64322]};
    [self.segmentCtl addTarget:self action:@selector(segmentChanged:) forControlEvents:UIControlEventValueChanged]
  • however, titles does not display under iOS10(as shown below), and everything is well with other versions of system. Anyone can supply some feasible advise or fix this? Thx a lot.
    img_0027
@jayhe
Copy link

jayhe commented Sep 3, 2016

This issue is fixed with version 1.5.3

@lotushacker
Copy link
Author

Thx, perfectly fix.

@ndvgn
Copy link

ndvgn commented Sep 5, 2016

When will it get updated to 1.5.3 on CocoaPods?

@ZackTvZ
Copy link

ZackTvZ commented Sep 7, 2016

CocoaPods still 1.5.2?

@roadst3r
Copy link

roadst3r commented Sep 9, 2016

Any news on this subject?
CocoaPods still doesn't update to 1.5.3

@MiracleJ
Copy link

CocoaPods still doesn't update to 1.5.3

@Oggerschummer
Copy link

Oggerschummer commented Sep 12, 2016

Same issue for me, pod is not updating
Tried:
pod 'HMSegmentedControl', :git =>'https://github.com/HeshamMegid/HMSegmentedControl.git', :tag => '1.5.3'
Downloads, but still states version 1.5.2.

BTW: podspec shows tag => "v1.5.3"
Sure this is correct ?

@btrzupek
Copy link

It looks like the pod spec file in the 1.5.3 tag is still 'displaying' 1.5.2

@btrzupek
Copy link

Pod now updated and the control works correctly with:
pod 'HMSegmentedControl', :git =>'https://github.com/HeshamMegid/HMSegmentedControl.git', :tag => '1.5.3'

However, CocoaPods still says it is version 1.5.2

@CodeY2J
Copy link

CodeY2J commented Sep 13, 2016

CocoaPods still says it's version 1.5.2,even though i use this command pod 'HMSegmentedControl', :git =>'https://github.com/HeshamMegid/HMSegmentedControl.git', :tag => '1.5.3',please tell me how to update this to version 1.5.3

@btrzupek
Copy link

CodeY2J, I had the same experience. I believe that the code branch pointed to by the github URL is correct for the 1.5.3 tag, but inside that branch, in the pod spec file, it still says it is version 1.5.2.

So, after pod install(ing) from the above URL and rebuilding my project - everything worked just fine - despite cocoa pods still saying it is 1.5.2.

@Agoer
Copy link

Agoer commented Sep 14, 2016

tag for 1.5.3 can not update success。。

@HeshamMegid
Copy link
Owner

Sorry folks, I pushed the wrong tag name then travelled for a week with no internet access! 😬

It should be fixed now.

@andrewjburnett
Copy link

I'm still met with an error.

None of your spec sources contain a spec satisfying the dependency: HMSegmentedControl (~> 1.5.3).

@alims
Copy link

alims commented Sep 26, 2016

not displaye. I'm still met with an same error. v1.5.3

@osolano
Copy link

osolano commented Oct 11, 2016

I also still have the same issue and on v1.5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests