WMPageController-Swift icon indicating copy to clipboard operation
WMPageController-Swift copied to clipboard

View sink when come into the page at first time

Open Shelro opened this issue 8 years ago • 4 comments

View sink when come into the page at first time, if I click to the second view and then came back, it will be OK. 2017-04-26 1 06 07 2017-04-26 1 06 20

Shelro avatar Apr 26 '17 05:04 Shelro

ios8, swift3, wmpagecontroller最新的support swift 3.0的版本。刚才尝试了一下,如果连上自己写的tableView就会跳出诶;那种带cell和实体类,有storyboard的那种,单独运行tableView是没问题的

Shelro avatar Apr 26 '17 11:04 Shelro

报错信息--------------- 2017-04-26 19:26:31.415 FoodPin[55766:2379945] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<FoodPin.RestaurantTableViewController 0x7fabdbd09330> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key text.' *** First throw call stack: ( 0 CoreFoundation 0x0000000109dbbb0b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x0000000109820141 objc_exception_throw + 48 2 CoreFoundation 0x0000000109dbba59 -[NSException raise] + 9 3 Foundation 0x0000000109335e8b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292 4 UIKit 0x000000010acc1644 -[UIViewController setValue:forKey:] + 87 5 FoodPin 0x00000001091cfced TFC7FoodPin14PageControllerP33_FF9FFBC6FD18B1CB56599E93071F5F6724addViewControllerAtIndexfSiT + 749 6 FoodPin 0x00000001091ceca6 TFC7FoodPin14PageControllerP33_FF9FFBC6FD18B1CB56599E93071F5F6726layoutChildViewControllersfT_T + 3382 7 FoodPin 0x00000001091d2d71 TFC7FoodPin14PageController19scrollViewDidScrollfCSo12UIScrollViewT + 161 8 FoodPin 0x00000001091d30ba TToFC7FoodPin14PageController19scrollViewDidScrollfCSo12UIScrollViewT + 58 9 UIKit 0x000000010ac10119 -[UIScrollView(UIScrollViewInternal) _notifyDidScroll] + 69 10 UIKit 0x000000010abf9140 -[UIScrollView setContentOffset:] + 539 11 UIKit 0x000000010abf2aa5 -[UIScrollViewScrollAnimation setProgress:] + 408 12 UIKit 0x000000010acb3628 -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] + 252 13 QuartzCore 0x000000010a8a7767 _ZN2CA7Display15DisplayLinkItem8dispatchEy + 51 14 QuartzCore 0x000000010a8a762d _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 439 15 CoreFoundation 0x0000000109d4eb61 __CFMachPortPerform + 161 16 CoreFoundation 0x0000000109d4eaa9 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 41 17 CoreFoundation 0x0000000109d4ea21 __CFRunLoopDoSource1 + 465 18 CoreFoundation 0x0000000109d46ba0 __CFRunLoopRun + 2352 19 CoreFoundation 0x0000000109d46016 CFRunLoopRunSpecific + 406 20 GraphicsServices 0x000000010fc8ea24 GSEventRunModal + 62 21 UIKit 0x000000010ab260d4 UIApplicationMain + 159 22 FoodPin 0x00000001091e5177 main + 55 23 libdyld.dylib 0x000000010de5f65d start + 1 24 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

Shelro avatar Apr 26 '17 11:04 Shelro

@Shelro swift版本确实有不少问题,一直都没空维护,实在抱歉

wangmchn avatar Apr 27 '17 11:04 wangmchn

没事哒,做的真的非常好了!能改进一下就更好啦~

Shelro avatar Apr 27 '17 16:04 Shelro