alikaragoz / akasegmentedcontrol Goto Github PK
View Code? Open in Web Editor NEW:chocolate_bar: Fully customizable Segmented Control for iOS
License: MIT License
:chocolate_bar: Fully customizable Segmented Control for iOS
License: MIT License
Just like it was pointed out in #20, this library needs another name.
It causes an exception in iOS10:
-[AKSegmentedControl setSegmentedControlMode:]: unrecognized selector sent to instance...
This is the log from the debugger when launching an app using this library:
Class AKSegmentedControl is implemented in both /System/Library/PrivateFrameworks/AnnotationKit.framework/AnnotationKit (0x1b750c568) and /var/containers/Bundle/Application/A192D0FD-556C-4BB3-B910-AEAF2312DB39/... (0x100c9eb30).
One of the two will be used. Which one is undefined.
AKSegmentedControl callback is NSIndexSet, How do I determine which button is pressed directly.Thanks
(void)segmentedViewController:(id)sender
{
AKSegmentedControl *segmentedControl = (AKSegmentedControl *)sender;
if (segmentedControl == self.segmentedControl1) {
//NSLog(@"SegmentedControl #1 ----: Selected Index %@", [segmentedControl selectedIndexes]);
NSIndexSet *indexSet = [segmentedControl selectedIndexes];
NSLog(@"what index is kenpig %d", [indexSet containsIndex:0]);
}
Hey,
i have two UIPopoverController with an AKSegmentControl in it. Both AKSegmentedControls are 140px width.
One Popover is 320px width, the other ist 280px width. I set up the Control with the following Code:
mehrfachAuswahl = [[AKSegmentedControl alloc] initWithFrame:CGRectMake((self.bounds.size.width - 20) - auswahlWidth, 7, auswahlWidth, 35.0)];
[mehrfachAuswahl addTarget:self action:@selector(segmentedViewController:) forControlEvents:UIControlEventValueChanged];
[mehrfachAuswahl setSegmentedControlMode:AKSegmentedControlModeMultipleSelectionable];
Is it possible to deactive the autoresizing effekt?
The used UISegmentControl under the AKSegmentedControl is alwasy 140pc width.
please push version 0.4 spec to CocoaPods Spec repo. :)
When pressing the same button twice in a row in button mode, the button does nothing. It can be reset by pressing another button on the control, but this is not a good user experience.
No visible @interface for 'AKSegmentedControl' declares the selector 'setDelegate:'
2 letter prefixes are reserved for use by Apple you should pick a 3 letter prefix for your framework
While using contentEdgeInsets to shrink the separator images, it has the side effect of reducing the tap area.
Could this behavior be changed?
I found that the layoutSubViews
not call [super layoutSubviews]
, I think it is incorrect.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.