GithubHelp home page GithubHelp logo

nysegmentedcontrol's People

Contributors

barrault01 avatar krzyzanowskim avatar mtynior avatar nealyoung avatar podkovyrin avatar slaunchaman avatar wiruzx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nysegmentedcontrol's Issues

Unable to set indicator's corner radius

I'd like to be able to set a corner radius on both the segmented control, as well as its indicator view. Rather than making properties on the segmented control that are passed to the indicator view, why not just expose the indicator view itself?

Border-Bottom

Is there anyway to set just the Bottom Border of the selected item?

Swipe Gesture

Swipe is not working well and there is no disable option.

Issue with the mask on the title

When first loading the segmented control, the first text in the first selected segment is not properly rendered.

capture d ecran 2015-08-19 a 14 53 00
(first loading)

instead of

capture d ecran 2015-08-19 a 14 53 07
(after selecting another segment and back to the first one)

Note: the first image corresponds to the label when one is moving ("panning") the segment from one index to another and when the titles are being masked interactively. If I stop my finger over a title, it will look like pic. 1 but when I release my finger and the segment becomes selected, then it looks like pic. 2.

So the issue is that when first appearing, the selected segment is as in pic. 1 and not as is pic. 2.

Thanks.

Library not compiled for iOS version below 9.1

I get this error when i set my minimum deployment target to iOS 7.1

(null): Object file (/Users/jatin/Library/Developer/Xcode/DerivedData/MyProject/Build/Products/Debug-iphonesimulator/libNYSegmentedControl.a(NYSegmentIndicator.o)) was built for newer iOS version (9.1) than being linked (7.1)

Can you recompile it with minimum target as iOS 7.1? Warnings are not very delightful to see. :(

Update Podspec?

Can you integrate changes from krzyzanowskim/NYSegmentedControl and update podSpec please? IBOutlet quite helpful

Cannot add image

UISegmentedControl can take UIImage during initialization but NYSegmentedControl only takes NSString. Could you fix this?
Thanks.

Text Color issue when dragging

When you dragged the thumb to change section the second time, you will se see that the text ofthe current section stay the same color as selected
exemple

The solution that I found without modify the library is to make layoutSubviews on the control after the "index changed" event.
Is there a way to fix it in the library instead to make it like I do?(Surely)

Thanks

Issue when using clear background

If I choose for the control to have a clear background, but set the selected segment indicator background to any color other than clear, when I select one of the other indexes, the selected segment indicator moves, but the background stays in place. See the attached screenshot.
screen shot 2015-11-19 at 15 54 36

New feature: adding delegates

Hi,

I'm thinking of a new feature: adding a delegate:

@protocol NYSegmentedControlDelegate <NSObject>

- (void)segmentedControl:(NYSegmentedControl *)segmentedControl willSelectIndex:(NSUInteger)index ;
- (void)segmentedControl:(NYSegmentedControl *)segmentedControl didSelectIndex:(NSUInteger)index ;

- (void)segmentedControl:(NYSegmentedControl *)segmentedControl willUnselectIndex:(NSUInteger)index ;
- (void)segmentedControl:(NYSegmentedControl *)segmentedControl didUnselectIndex:(NSUInteger)index ;

@end

What do you think? Good idea? Easy to implement?

If you are OK, I can do a PR.

crash when drag the segment button

the error info is:
Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathMoveToPoint(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat), file Paths/CGPath.cc, line 254.

crash in this line:
UIBezierPath *roundRectBezierPath = [UIBezierPath bezierPathWithRoundedRect:self.maskFrame
cornerRadius:self.maskCornerRadius];

Corner Radius issues

My goal is to make a "square" segmented control. It seems like cornerRadius affects the corner radius of the control, but regardless what value I set that to, the selectedSegmentIndicator maintains a 4.0f corner radius. I see in the code where that is set but I don't see way to adjust it. Based on that, I also don't get how the examples are possible...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.