-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以选择具体时间吗 #1
Comments
目前模拟器和真机都试过,没有出现任何问题哦。 |
如何只精确到小时 后面不要分钟显示..model只有那几个.. |
在下载的demo和新建的项目里修改mode就没问题,添加到自己的项目就报错... |
你代码有毒... |
invalid height value 212.0 pinned to 180.0 |
@huzhiqin 刚才换了下设备,相同的代码换到5S(9.1)和6+(9.2)就没问题... |
还有此等怪事,我手机6 Plus 8.4系统也没遇到过。确定蹦在哪哦?断点多打些,一步步走。 |
@huzhiqin 在[self.view addSubview:_pikerView] 之后崩的... |
_pikerView.frame写的多少? |
@huzhiqin _pikerView.frame = CGRectMake(0, 0, ScreenRectWidth, ScreenRectHeight + 20) |
把我的DEMO装在你说的那个问题机型上,看看会不会崩溃 |
@huzhiqin 不会.... |
@liuyan3176 你代码有毒😂😂 |
@huzhiqin 但是我的代码+你的demo在5S和6+上都没问题.... |
在xib里把Mode改Date an Time就会报错。
具体log为:
-[UIPickerView setFrame:]: invalid height value 212.0 pinned to 180.0
*** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'
*** First throw call stack:
(0x2ae1b45f 0x38cf1c8b 0x2ae1b3a5 0x2dd53a9b 0x2dd5399f 0x115d4e7 0x2dd53937 0x2e7b947b 0x2e7b94eb 0x2dd5720d 0x2dd57095 0x2dd56a71 0x2dd56875 0x2dd5074d 0x2ade1ffd 0x2addf6bb 0x2addfac3 0x2ad2d3b1 0x2ad2d1c3 0x3235a201 0x2e39743d 0xa38a5 0x3927daaf)
libc++abi.dylib: terminating with uncaught exception of type NSException
The text was updated successfully, but these errors were encountered: