You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When launching an ActionSheetPicker in landscape mode I get a "invalid context warning" in the console. Aside from the warning it seems to work OK.
The error reads something like the following
Jul 30 11:29:49 .... ActionSheetPicker[5133] : CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
I can get rid of the error by modifying the configureAndPresentActionSheetForView: method in AbstractActionSheetPicker.m to pass in an empty string instead of nil when creating the actionSheet
With the new update I'm no longer getting the warning, of course as of now landscape doesn't work at all due to issue #17 so I'm going to leave this issue open for now.
When launching an ActionSheetPicker in landscape mode I get a "invalid context warning" in the console. Aside from the warning it seems to work OK.
The error reads something like the following
I can get rid of the error by modifying the
configureAndPresentActionSheetForView:
method inAbstractActionSheetPicker.m
to pass in an empty string instead of nil when creating the actionSheethttps://github.com/skywinder/ActionSheetPicker-3.0/blob/master/Pickers/AbstractActionSheetPicker.m#L424
From
_actionSheet = [[UIActionSheet alloc] initWithTitle:paddedSheetTitle delegate:nil cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil];
To
_actionSheet = [[UIActionSheet alloc] initWithTitle:paddedSheetTitle delegate:nil cancelButtonTitle:@"" destructiveButtonTitle:nil otherButtonTitles:nil];
However while the context error goes away the picker isn't displayed correctly.
The error only seems to be on iOS 7. You can test this by running the example project and switching to landscape mode.
The text was updated successfully, but these errors were encountered: