-
Notifications
You must be signed in to change notification settings - Fork 156
Let the code runs in main thread when a cell is selected in demo code. #3
Comments
Twitter的动画效果在dismiss的最后阶段不平滑,界面会跳一下。 |
About Twitter , You can try set 在 Twitter 的这个效果中,会出现移位的情况,我也很好奇为什么会这样,你可以试试设置 |
延迟这个我也很奇怪 |
延迟的问题我也不太知道为什么,有的时候确实会出现这个问题,之前去stackoverflow上搜,别人给出的方法是把代码gcd包一下放到主线程里就没有延迟了。 |
你的环境是 iOS 8 吗?我记得在 8 的时候,会有这样的情况发生。 |
iOS9.2,我在模拟器里运行的,也可能是我的个例? |
Maybe~如果在手机上呢? |
在真机上刚测过,5c,系统9.2,跟模拟器上一样的问题,就只点那个twitter,有时候点一下没反应,点第二下才会有反应。但是把代码放倒main thread里,在模拟器和手机上都是任何时候点一下就会有反应,不知道什么原因。。。 |
Get. 晚一些会尝试解决这个问题. |
Fixed~ 感谢提醒 ^^ |
HiHi |
In Demo MainViewController.swift, the code should be wrapped in dispatch_async(dispatch_get_main_queue()) {...} , otherwise it will delay some seconds when response the user tapped event. I don't know why, but run in main thread can solve the delay problem. Something like that:
`
The text was updated successfully, but these errors were encountered: