Title: UIDatePickerView is not compatible with NativeCSS · Issue #4 · nativecss/NativeCSS.framework · GitHub
Open Graph Title: UIDatePickerView is not compatible with NativeCSS · Issue #4 · nativecss/NativeCSS.framework
X Title: UIDatePickerView is not compatible with NativeCSS · Issue #4 · nativecss/NativeCSS.framework
Description: As far as I can tell, UIDatePickerView is not compatible with NativeCSS. As soon as I add a UIDatePicker to my project using either Interface Builder or by adding it programmatically in code, my view crashes. I get this error: 2015-06-08...
Open Graph Description: As far as I can tell, UIDatePickerView is not compatible with NativeCSS. As soon as I add a UIDatePicker to my project using either Interface Builder or by adding it programmatically in code, my vi...
X Description: As far as I can tell, UIDatePickerView is not compatible with NativeCSS. As soon as I add a UIDatePicker to my project using either Interface Builder or by adding it programmatically in code, my vi...
Opengraph URL: https://github.com/nativecss/NativeCSS.framework/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UIDatePickerView is not compatible with NativeCSS","articleBody":"As far as I can tell, UIDatePickerView is not compatible with NativeCSS. As soon as I add a UIDatePicker to my project using either Interface Builder or by adding it programmatically in code, my view crashes. I get this error:\n\n```\n2015-06-08 16:52:43.742 Beacon[54700:3053438] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 3 beyond bounds [0 .. 1]'\n*** First throw call stack:\n(\n 0 CoreFoundation 0x03c2c746 __exceptionPreprocess + 182\n 1 libobjc.A.dylib 0x00724a97 objc_exception_throw + 44\n 2 CoreFoundation 0x03b00b73 -[__NSArrayM objectAtIndex:] + 243\n 3 UIKit 0x01a7be8b -[UIPickerView selectedRowInComponent:] + 82\n 4 UIKit 0x021e62b5 -[_UIDatePickerMode_DateAndTime _shouldEnableValueForRow:inComponent:calendarUnit:] + 419\n 5 UIKit 0x021e232a -[_UIDatePickerMode _shouldEnableValueForRow:column:] + 86\n 6 UIKit 0x021e1f7c -[_UIDatePickerMode viewForRow:inComponent:reusingView:] + 704\n 7 UIKit 0x021e6466 -[_UIDatePickerMode_DateAndTime viewForRow:inComponent:reusingView:] + 174\n 8 UIKit 0x021d977d -[_UIDatePickerView pickerView:viewForRow:forComponent:reusingView:] + 66\n 9 UIKit 0x01a7c445 -[UIPickerView tableView:cellForRowAtIndexPath:] + 320\n 10 UIKit 0x021cd3e5 -[UIPickerColumnView tableView:cellForRowAtIndexPath:] + 61\n 11 UIKit 0x01bbf73d -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 473\n 12 UIKit 0x01bbf81f -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 77\n 13 UIKit 0x01b979cb -[UITableView _updateVisibleCellsNow:isRecursive:] + 3034\n 14 UIKit 0x01b95899 -[UITableView _updateVisibleCellsImmediatelyIfNecessary] + 76\n 15 UIKit 0x01baa050 -[UITableView _visibleCells] + 35\n 16 UIKit 0x01baa0a5 -[UITableView visibleCells] + 33\n 17 Beacon 0x002ca357 -[NCNativeCSS refreshChildStylesOfView:ignoreSubviews:] + 513\n 18 Beacon 0x002ca151 -[NCNativeCSS refreshChildStylesOfView:] + 48\n 19 Beacon 0x002ca9a3 -[NCNativeCSS refreshChildStylesOfView:ignoreSubviews:] + 2125\n 20 Beacon 0x002ca151 -[NCNativeCSS refreshChildStylesOfView:] + 48\n 21 Beacon 0x002ca9a3 -[NCNativeCSS refreshChildStylesOfView:ignoreSubviews:] + 2125\n 22 Beacon 0x0030274a -[UIView(NativeCSS) refreshCSSStyling] + 680\n 23 Beacon 0x002f9521 -[UIView(UIView_NativeCSSPrivate) didAddSubview:] + 1286\n 24 UIKit 0x01b225b9 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 2400\n 25 UIKit 0x01b149c6 -[UIView(Hierarchy) addSubview:] + 56\n 26 UIKit 0x01a79d6c -[UIPickerView layoutSubviews] + 4669\n 27 UIKit 0x021d9ade -[_UIDatePickerView layoutSubviews] + 115\n 28 UIKit 0x01b2557a -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 668\n 29 libobjc.A.dylib 0x0073a771 -[NSObject performSelector:withObject:] + 70\n 30 QuartzCore 0x01822e47 -[CALayer layoutSublayers] + 144\n 31 QuartzCore 0x01816925 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 403\n 32 QuartzCore 0x0181677a _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26\n 33 QuartzCore 0x01772c52 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 284\n 34 QuartzCore 0x017740e5 _ZN2CA11Transaction6commitEv + 487\n 35 QuartzCore 0x017747fc _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92\n 36 CoreFoundation 0x03b4d86e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30\n 37 CoreFoundation 0x03b4d7b0 __CFRunLoopDoObservers + 400\n 38 CoreFoundation 0x03b431ea __CFRunLoopRun + 1226\n 39 CoreFoundation 0x03b42a5b CFRunLoopRunSpecific + 443\n 40 CoreFoundation 0x03b4288b CFRunLoopRunInMode + 123\n 41 GraphicsServices 0x07c182c9 GSEventRunModal + 192\n 42 GraphicsServices 0x07c18106 GSEventRun + 104\n 43 UIKit 0x01a92106 UIApplicationMain + 1526\n 44 Beacon 0x00110c44 main + 180\n 45 libdyld.dylib 0x04728ac9 start + 1\n)\nlibc++abi.dylib: terminating with uncaught exception of type NSException\n```\n\nThis occurs whether or not I have any CSS rules set up in my app at all. Merely adding NativeCSS to my Podfile and doing a `pod update` is enough to cause this error to show up. When I remove the library, everything works fine again. Also, when I remove UIDatePickerView, everything works.\n\nHere's a sample project that exhibits this behavior: https://www.dropbox.com/s/fze7woen3dh2c72/UIDatePickerWithinStaticUITableView.zip?dl=0\n\nThanks!\n\n--Dave\n","author":{"url":"https://github.com/dhilowitz","@type":"Person","name":"dhilowitz"},"datePublished":"2015-06-09T01:06:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4/NativeCSS.framework/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a74ebb11-d14e-6677-25b7-ebf8c722ea7c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADB6:38F9A7:197BFA0:2020797:697F2CDA |
| html-safe-nonce | 563b4f926df242d3f52d0702d11758b6bc1272b3d16ad2cb94162fea443899c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREI2OjM4RjlBNzoxOTdCRkEwOjIwMjA3OTc6Njk3RjJDREEiLCJ2aXNpdG9yX2lkIjoiNzExOTMzOTgwNTk1OTIwNDA1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b8e5ba2d8c05361708aeaa70dbb6e7508daac029e532f25d7fac41f751429d0 |
| hovercard-subject-tag | issue:86393855 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nativecss/NativeCSS.framework/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6cc552c10bd695acc12c40ced094307973789c261cdd59a3cdb23865846333c5/nativecss/NativeCSS.framework/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6cc552c10bd695acc12c40ced094307973789c261cdd59a3cdb23865846333c5/nativecss/NativeCSS.framework/issues/4 |
| og:image:alt | As far as I can tell, UIDatePickerView is not compatible with NativeCSS. As soon as I add a UIDatePicker to my project using either Interface Builder or by adding it programmatically in code, my vi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dhilowitz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nativecss/NativeCSS.framework git https://github.com/nativecss/NativeCSS.framework.git |
| octolytics-dimension-user_id | 2750509 |
| octolytics-dimension-user_login | nativecss |
| octolytics-dimension-repository_id | 14982652 |
| octolytics-dimension-repository_nwo | nativecss/NativeCSS.framework |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14982652 |
| octolytics-dimension-repository_network_root_nwo | nativecss/NativeCSS.framework |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width