Closed d3vtoolsmith closed 9 years ago
+1 I'm having this problem too, mine is happening with date pickers.
Date pickers are based on the PickerView, so yeah. Unfortunately I ended up having to switch to a similar library that doesn't have this or a number of other issues with this library. Make sure to Clean your project after you switch. I'm now working ridding myself of the phobia of using PickerView controls in iOS :) This is the library (it also works with sotryboards even though there's no example): https://github.com/Tgy31/THTinderNavigationController
I've just solved this problem by modifying the -(void)setFrame:(CGRect)frame and -(void)updateConstraints methods in the "UIScrollView+UpdateContentSize.m" file, and here is my code:
#pragma mark - OVERRIDE
-(void)setFrame:(CGRect)frame{
[super setFrame:frame];
// Scale the content size
Class UIPickerTableView = NSClassFromString(@"UIPickerTableView");
if ([self class] == UIPickerTableView) {
return;
}else {
[self updateContentSize];
}
}
-(void)updateConstraints{
[super updateConstraints];
// Scale the content size
Class UIPickerTableView = NSClassFromString(@"UIPickerTableView");
if ([self class] == UIPickerTableView) {
return;
}else {
[self updateContentSize];
}
}
This works and wish it could help you too.
I've been having an issue using the standard PickerView (spinning wheel) not only inside one of the view controllers under the purview of SLPagingViewController, but also inside of modal popups that seems shouldn't be affected by it. Basically, the spinning-wheel wobbles in every possible direction, doesn't rotate properly at all, with tapping (not swiping/spinning) being the only way to select a value.
Below are the screenshots of how it looks when you try to spin it. To experience, simply add the most basic PickerView implementation to the TinderStoryboard example (code below). Any thoughts on how to fix this would be helpful since I'm yet to find a solution/cause.
CODE: